Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgpackSerializer ¶
type MsgpackSerializer struct {
}
func (*MsgpackSerializer) Deserialize ¶
func (s *MsgpackSerializer) Deserialize(data []byte) (any, error)
type Serializer ¶
type Serializer interface {
// Serialize is used to serialize and data to a []byte
Serialize(data any) ([]byte, error)
// Deserialize is used to deserialize []byte to any
Deserialize(data []byte) (any, error)
}
Serializer interface is to provide serialize and deserialize methods for EasyRaft Node
func NewMsgpackSerializer ¶
func NewMsgpackSerializer() Serializer
Click to show internal directories.
Click to hide internal directories.