serializer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilObject = errors.New("cannot serialze nil object")
	ErrEmptyData = errors.New("cannot deserialize empty data")
)

Functions

func NewJSON

func NewJSON[T any]() store.Serializer[T]

func NewMsgpack

func NewMsgpack[T any]() store.Serializer[T]

Types

type KeyValueStore

type KeyValueStore[T any] interface {
	BaseKeyValueStore[T]
	Lister[T]
	Resetter
	ErrorMapSetter
}

func NewKeyValue

func NewKeyValue[T any](serializer Serializer[T], storage Map) KeyValueStore[T]

type Map

type Map interface {
	BaseKeyValueMap
	ErrorMapSetter
	Resetter
}

Jump to

Keyboard shortcuts

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