Files

22 lines
426 B
Go
Raw Permalink Normal View History

// Package runtime is adapted from go-kratos/kratos config.
//
// Upstream: https://github.com/go-kratos/kratos/tree/v2.9.2/config
// License: MIT, see LICENSE.kratos in this directory.
package runtime
type KeyValue struct {
Key string
Value []byte
Format string
}
type Source interface {
Load() ([]*KeyValue, error)
Watch() (Watcher, error)
}
type Watcher interface {
Next() ([]*KeyValue, error)
Stop() error
}