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