driver

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func RegisterDriver

func RegisterDriver(schema string, factory func(meta.Config, contract.Logger) (Driver, error))

Types

type Driver

type Driver interface {
	Namespaces() []string
	OnKeyChange(namespace, key string, hook func([]byte) error) bool
	Get(namespace, key string) ([]byte, error)
	GetString(namespace, key string) (string, error)
	Close()
}

func New

func New(config meta.Config, logger contract.Logger) (Driver, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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