database

package
v0.0.0-...-61effe2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Calculate(key string, params any) (any, error)
	Shutdown()
}

func NewDatabase

func NewDatabase(
	engine string,
	callback func(data any, params any) (any, any, error),
	evict func(data any) bool,
	logger *slog.Logger,
) Database

Directories

Path Synopsis
Package naive provides a basic implementation of an AVL (Adelson-Velsky and Landis) tree.
Package naive provides a basic implementation of an AVL (Adelson-Velsky and Landis) tree.

Jump to

Keyboard shortcuts

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