Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializer

type Serializer interface {
	Encode(val interface{}) (res []byte, err error)
	Decode(source []byte, destination interface{}) (err error)
}

type SerializerProtobuf

type SerializerProtobuf struct {
	Codec      encoding.Codec
	Compressor encoding.Compressor
}

func NewSerializerProtobuf

func NewSerializerProtobuf(compress bool) *SerializerProtobuf

func (*SerializerProtobuf) Decode

func (s *SerializerProtobuf) Decode(source []byte, destination interface{}) (err error)

func (*SerializerProtobuf) Encode

func (s *SerializerProtobuf) Encode(val interface{}) (res []byte, err error)

Source Files