Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Json = JsonSerializer{}
View Source
var NotImplementProtoMessageError = errors.New("param does not implement proto.Message")
NotImplementProtoMessageError refers to param not implemented by proto.Message
View Source
var Proto = ProtoSerializer{}
Functions ¶
This section is empty.
Types ¶
type JsonSerializer ¶
type JsonSerializer struct{}
Json .serializer
func (JsonSerializer) Decode ¶
func (_ JsonSerializer) Decode(data []byte, message interface{}) error
Unmarshal .
func (JsonSerializer) Encode ¶
func (_ JsonSerializer) Encode(message interface{}) ([]byte, error)
Marshal .
func (JsonSerializer) Type ¶
func (JsonSerializer) Type() string
type ProtoSerializer ¶
type ProtoSerializer struct { }
ProtoSerializer implements the Serializer interface
func (ProtoSerializer) Decode ¶
func (_ ProtoSerializer) Decode(data []byte, message interface{}) error
Unmarshal .
func (ProtoSerializer) Encode ¶
func (_ ProtoSerializer) Encode(message interface{}) ([]byte, error)
Marshal .
func (ProtoSerializer) Type ¶
func (ProtoSerializer) Type() string
Click to show internal directories.
Click to hide internal directories.