Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SerializeType ¶
type SerializeType byte
const ( SerializeTypeNone SerializeType = iota SerializeTypeMsgpack SerializeTypeJson )
type Serializer ¶
type Serializer interface { Encode(v interface{}) ([]byte, error) Decode(data []byte, v interface{}) error }
func GetSerializer ¶
func GetSerializer(styp SerializeType) Serializer
Click to show internal directories.
Click to hide internal directories.