Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncodingMsgPack ¶
type EncodingMsgPack struct{}
EncodingMsgPack is the msgpack encoding registry used by the vmihailenco/msgpack package
func NewEncodingMsgPack ¶
func NewEncodingMsgPack() *EncodingMsgPack
NewEncodingMsgPack returns a new EncodingMsgPack
func (*EncodingMsgPack) Marshal ¶
func (e *EncodingMsgPack) Marshal(v interface{}) ([]byte, error)
Marshal converts the given value to a msgpack byte slice
func (*EncodingMsgPack) Unmarshal ¶
func (e *EncodingMsgPack) Unmarshal(b []byte, v interface{}) error
Unmarshal converts the given msgpack byte slice to the given value
func (*EncodingMsgPack) UnmarshalToMap ¶
func (e *EncodingMsgPack) UnmarshalToMap(b []byte) (map[string]interface{}, error)
UnmarshalToMap converts the json string to a map
Click to show internal directories.
Click to hide internal directories.