Versions in this module Expand all Collapse all v1 v1.0.1 Nov 25, 2020 Changes in this version + type CodecType int v1.0.0 May 18, 2020 Changes in this version + const Codec_Json + const Codec_Protobuf + type JsonCodec interface + GetName func() string + type JsonMarshaler struct + func (m *JsonMarshaler) Marshal(v interface{}) ([]byte, error) + func (m *JsonMarshaler) String() string + func (m *JsonMarshaler) Unmarshal(data []byte, rtype reflect.Type) (interface{}, error) + type Marshaler interface + Marshal func(interface{}) ([]byte, error) + String func() string + Unmarshal func([]byte, reflect.Type) (interface{}, error) + func NewJsonCodec() Marshaler + func NewProtobufCodec() Marshaler + type ProtoBufMarshaler struct + func (m *ProtoBufMarshaler) Marshal(v interface{}) ([]byte, error) + func (m *ProtoBufMarshaler) String() string + func (m *ProtoBufMarshaler) Unmarshal(data []byte, rtype reflect.Type) (interface{}, error)