storage

package
v0.0.0-...-1fb2453 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCallbacks

func WithCallbacks(callbacks map[string]StorageCallbackFunc) func(*storage)

func WithStorageFile

func WithStorageFile(file string) func(*storage)

Types

type StorageCallbackFunc

type StorageCallbackFunc func(string, any)

type StorageWithCallbacks

type StorageWithCallbacks interface {
	configuration.Storage
	RegisterCallback(key string, callback StorageCallbackFunc)
	UnRegisterCallback(key string)
}

func NewStorageWithCallbacks

func NewStorageWithCallbacks(opts ...storageOption) (StorageWithCallbacks, error)

Jump to

Keyboard shortcuts

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