module

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = fmt.Errorf("key not found")

ErrKeyNotFound is the error when key is not found.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// GetValue returns the value of the key.
	GetValue(ctx context.Context, key string) (interface{}, error)

	GetBool(ctx context.Context, key string) (bool, error)
	GetInt(ctx context.Context, key string) (int, error)
	GetString(ctx context.Context, key string) (string, error)
	GetStruct(ctx context.Context, key string, v interface{}) error

	Watch(ctx context.Context) (chan bool, error)
}

type Module

type Module string
const (
	FileModule   Module = "file"
	ConsulModule Module = "consul"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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