datastore

package
v0.1.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

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