config

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultDir = "config"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMate

type ConfigMate interface {
	PrimitiveDecode(vals ...ConfigureMatcher) error
}

type ConfigureMatcher

type ConfigureMatcher interface {
	Name() string
}

type Option added in v1.5.4

type Option struct {
	Interval int
	Source   Source
}

type Options added in v1.5.5

type Options func(opt *Option)

func WithInterval added in v1.5.5

func WithInterval(interval int) Options

func WithSource added in v1.5.5

func WithSource(source Source) Options

type Source added in v1.5.4

type Source interface {
	Load(format string) (string, error)
}

type Watcher added in v1.5.4

type Watcher interface {
	Next(ctx context.Context)
	Probe(chan<- struct{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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