Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConverterService ¶
type ConverterService struct { }
func (*ConverterService) Deserialize ¶
func (s *ConverterService) Deserialize(data []byte) (interface{}, error)
func (*ConverterService) Serialize ¶
func (s *ConverterService) Serialize(data interface{}) ([]byte, error)
type Serializer ¶
type Serializer interface { // Serialize is used to serialize and data to a []byte Serialize(data interface{}) ([]byte, error) // Deserialize is used to deserialize []byte to interface{} Deserialize(data []byte) (interface{}, 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.