kvdriver

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: 3 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func New added in v1.13.1

func New[K comparable, M any](fn FuncNew[K, M], fg FuncGet[K, M], fs FuncSet[K, M], fd FuncDel[K], fl FuncList[K, M], 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, M any] func(key K) (M, error)

type FuncList

type FuncList[K comparable, M any] 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, M any] func(key K, model M) error

type FuncWalk

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