kvmap

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamEmpty liberr.CodeError = iota + liberr.MinPkgDatabaseKVMap
	ErrorBadInstance
	ErrorGetFunction
	ErrorSetFunction
	ErrorDelFunction
	ErrorListFunction
	ErrorFunctionParams
)

Variables

This section is empty.

Functions

func New added in v1.13.1

func New[K comparable, MK comparable, M any](fn FuncNew[K, M], fg FuncGet[K, MK], fs FuncSet[K, MK], fd FuncDel[K], fl FuncList[K, MK]) libkvt.KVDriver[K, M]

Types

type FuncDel added in v1.13.1

type FuncDel[K comparable] func(key K) error

type FuncGet

type FuncGet[K comparable, MK comparable] func(key K) (map[MK]any, error)

type FuncList

type FuncList[K comparable, MK comparable] func() ([]K, error)

type FuncNew added in v1.13.1

type FuncNew[K comparable, M any] func() libkvt.KVDriver[K, M]

type FuncSet

type FuncSet[K comparable, MK comparable] func(key K, model map[MK]any) error

Jump to

Keyboard shortcuts

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