Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongValueType = errors.New("protobuf: convert on wrong type value")
ErrWrongValueType is the error used for marshal the value with protobuf encoding.
Functions ¶
This section is empty.
Types ¶
type JsonSerializer ¶
type JsonSerializer struct{}
JsonSerializer implements the serialize.Serializer interface
func NewJsonSerializer ¶
func NewJsonSerializer() *JsonSerializer
NewJsonSerializer returns a new Serializer.
type ProtoSerializer ¶
type ProtoSerializer struct{}
ProtoSerializer implements the serialize.Serializer interface
func NewProtoSerializer ¶
func NewProtoSerializer() *ProtoSerializer
NewProtoSerializer returns a new Serializer.
type Serializer ¶
type Serializer interface { Marshaler Unmarshaler }
Serializer is the interface that groups the basic Marshal and Unmarshal methods.
type Unmarshaler ¶
Unmarshaler represents a Unmarshal interface
Click to show internal directories.
Click to hide internal directories.