encoding

package
v0.0.0-...-a345a4b Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgPackGenSerde

type MsgPackGenSerde struct{}

MsgPackGenSerde encodes model.PolymorphicEvent into bytes and decodes model.PolymorphicEvent from bytes.

func (*MsgPackGenSerde) Marshal

func (m *MsgPackGenSerde) Marshal(event *model.PolymorphicEvent, bytes []byte) ([]byte, error)

Marshal encodes model.PolymorphicEvent into bytes.

func (*MsgPackGenSerde) Unmarshal

func (m *MsgPackGenSerde) Unmarshal(event *model.PolymorphicEvent, bytes []byte) ([]byte, error)

Unmarshal decodes model.PolymorphicEvent from bytes.

type SerializerDeserializer

type SerializerDeserializer interface {
	Marshal(event *model.PolymorphicEvent, bytes []byte) ([]byte, error)
	Unmarshal(event *model.PolymorphicEvent, bytes []byte) ([]byte, error)
}

SerializerDeserializer is the interface encodes and decodes model.PolymorphicEvent.

Jump to

Keyboard shortcuts

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