Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serializer ¶
type Serializer interface { Marshaler Unmarshaler GetName() string }
Serializer is the interface that groups the basic Marshal and Unmarshal methods.
func NewSerializer ¶
func NewSerializer(serializerType Type) (Serializer, error)
NewSerializer returns a new serializer of the respective type (JSON or PROTOBUF) according to serializerType Type. If serializerType is a JSON, then a JSON serializer is returned. If serializerType is a PROTOBUF, then a PROTOBUF serializer is returned. Otherwise, if serializerType is not a valid serializer type, then it returns nil.
type Unmarshaler ¶
Unmarshaler represents a Unmarshal interface
Click to show internal directories.
Click to hide internal directories.