Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Serializers = map[SerializeType]Serializer{ Proto: ProtoSerializer{}, }
Serializers which supported by rpc
Functions ¶
This section is empty.
Types ¶
type ProtoSerializer ¶
type ProtoSerializer struct { }
ProtoSerializer implements the Serializer interface
func (ProtoSerializer) Marshal ¶
func (_ ProtoSerializer) Marshal(message interface{}) ([]byte, error)
Marshal .
func (ProtoSerializer) Unmarshal ¶
func (_ ProtoSerializer) Unmarshal(data []byte, message interface{}) error
Unmarshal .
type SerializeType ¶
type SerializeType int32
SerializeType serialized type supported by rpc
const (
Proto SerializeType = iota
)
Click to show internal directories.
Click to hide internal directories.