You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
367 B

package config
import "context"
type Provider interface {
Read(ctx context.Context, key Key) (Variable, error)
NamedProvider
}
type WatchCallback func(ctx context.Context, oldVar, newVar Variable)
type WatchProvider interface {
Watch(ctx context.Context, key Key, callback WatchCallback) error
NamedProvider
}
type NamedProvider interface {
Name() string
}