serializer

package
v0.0.0-...-6976cfd Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2016 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Decode([]byte, interface{}) error
}

type Encoder

type Encoder interface {
	Encode(interface{}) ([]byte, error)
}

type JSONSerializer

type JSONSerializer struct{}

func (JSONSerializer) Decode

func (JSONSerializer) Decode(data []byte, result interface{}) error

func (JSONSerializer) Encode

func (JSONSerializer) Encode(data interface{}) ([]byte, error)

type MsgPackSerializer

type MsgPackSerializer struct{}

func (MsgPackSerializer) Decode

func (MsgPackSerializer) Decode(data []byte, result interface{}) error

func (MsgPackSerializer) Encode

func (MsgPackSerializer) Encode(data interface{}) ([]byte, error)

type Serializer

type Serializer interface {
	Encoder
	Decoder
}

Jump to

Keyboard shortcuts

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