marshaller

package
v1.56.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProtoModule for fx.
	// nolint:gochecknoglobals
	ProtoModule = fx.Options(fx.Provide(NewProto))

	// MsgPackModule for fx.
	// nolint:gochecknoglobals
	MsgPackModule = fx.Options(fx.Provide(NewMsgPack))
)

Functions

This section is empty.

Types

type Marshaller

type Marshaller interface {
	Marshal(v any) ([]byte, error)
	Unmarshal(data []byte, v any) error
}

Compressor allows to have different ways to marshal/unmarshal.

func NewMsgPack

func NewMsgPack() Marshaller

NewMsgPack for marshaller. nolint:ireturn

func NewProto

func NewProto() Marshaller

NewProto for marshaller. nolint:ireturn

Jump to

Keyboard shortcuts

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