codec

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryCodec

type BinaryCodec interface {
	Marshal(transaction.Msg) ([]byte, error)
	Unmarshal([]byte, transaction.Msg) error
}

BinaryCodec defines a binary encoding and decoding interface for modules to encode and decode data.

type Codec

type Codec interface {
	BinaryCodec
	JSONCodec
}

Codec defines a Binary Codec and JSON Codec for modules to encode and decode data.

type JSONCodec

type JSONCodec interface {
	MarshalJSON(transaction.Msg) ([]byte, error)
	UnmarshalJSON([]byte, transaction.Msg) error
}

JSONCodec defines a JSON encoding and decoding interface for modules to encode and decode data.

Jump to

Keyboard shortcuts

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