Documentation ¶
Overview ¶
A codec for handling msgpack encoding and decoding.
Index ¶
- type MsgpackCodec
- func (c *MsgpackCodec) CanMarshalWithCallback() bool
- func (c *MsgpackCodec) ContentType() string
- func (c *MsgpackCodec) FileExtension() string
- func (c *MsgpackCodec) Marshal(object interface{}, options map[string]interface{}) ([]byte, error)
- func (c *MsgpackCodec) Unmarshal(data []byte, obj interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgpackCodec ¶
type MsgpackCodec struct{}
MsgpackCodec converts objects to and from Msgpack.
func (*MsgpackCodec) CanMarshalWithCallback ¶
func (c *MsgpackCodec) CanMarshalWithCallback() bool
CanMarshalWithCallback returns whether this codec is capable of marshalling a response containing a callback.
func (*MsgpackCodec) ContentType ¶
func (c *MsgpackCodec) ContentType() string
ContentType returns the content type for this codec.
func (*MsgpackCodec) FileExtension ¶
func (c *MsgpackCodec) FileExtension() string
FileExtension returns the file extension for this codec.
func (*MsgpackCodec) Marshal ¶
func (c *MsgpackCodec) Marshal(object interface{}, options map[string]interface{}) ([]byte, error)
Converts an object to Msgpack.
func (*MsgpackCodec) Unmarshal ¶
func (c *MsgpackCodec) Unmarshal(data []byte, obj interface{}) error
Unmarshal converts Msgpack into an object.
Click to show internal directories.
Click to hide internal directories.