Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgPackCodec ¶
NewMsgPackCodec returns new ProtobufCodec
Types ¶
type MsgPackCodec ¶
type MsgPackCodec struct{}
MsgPackCodec is the msgpack impl of common.Codec interface
func (*MsgPackCodec) Marshal ¶
func (p *MsgPackCodec) Marshal(v interface{}) ([]byte, error)
Marshal serialize interface @v to bytes
func (*MsgPackCodec) Name ¶
func (p *MsgPackCodec) Name() string
func (*MsgPackCodec) Unmarshal ¶
func (p *MsgPackCodec) Unmarshal(data []byte, v interface{}) error
Unmarshal deserialize @data to interface
Click to show internal directories.
Click to hide internal directories.