msgpack

package
v0.0.0-...-930c492 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

A codec for handling msgpack encoding and decoding.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL