source

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Event added in v1.1.0

type Event int
const (
	Update Event = iota + 1
	Delete
)

type Source

type Source interface {
	Scan(ctx context.Context, key string, value interface{}) error
	Has(ctx context.Context, key string) (bool, error)
	Watch(ctx context.Context, key string, callback func(event Event)) error
}

Jump to

Keyboard shortcuts

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