payload

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package payload provides interfaces and types for working with data payloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicPayload

type BasicPayload struct {
	// Data holds the byte data of the payload.
	Data []byte
}

BasicPayload is a simple implementation of the MarshalerByte interface.

func (BasicPayload) Bytes

func (p BasicPayload) Bytes() []byte

Bytes returns the byte representation of the BasicPayload. It implements the Bytes method of the MarshalerByte interface.

type MarshalerByte

type MarshalerByte interface {
	// Bytes returns the byte representation of the implementing type.
	Bytes() []byte
}

MarshalerByte is an interface for types that can marshal themselves into a byte slice.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL