kvmap

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 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](cmp libkvt.Compare[K], fn FuncNew[K, M], fg FuncGet[K, MK], fs FuncSet[K, MK], fd FuncDel[K], fl FuncList[K], fh FuncSearch[K], fw FuncWalk[K, M]) 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] func() ([]K, error)

type FuncNew added in v1.13.1

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

type FuncSearch added in v1.18.0

type FuncSearch[K comparable] func(prefix K) ([]K, error)

type FuncSet

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

type FuncWalk added in v1.18.0

type FuncWalk[K comparable, M any] func(fct libkvt.FctWalk[K, M]) error

Jump to

Keyboard shortcuts

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