datastore

package
v0.0.0-...-b320325 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 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