Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoConfig = errors.New("no config available. did you call init?") ErrNotValidJSON = errors.New("base config must be valid json") )
Functions ¶
This section is empty.
Types ¶
type Configuration ¶ added in v1.0.52
type Configuration struct {
Config *gojson.JSONReader
RawConfig []byte
EnvMap map[string]string
// contains filtered or unexported fields
}
func NewLocalConfiguration ¶ added in v1.0.52
func NewLocalConfiguration(baseConfig []byte, envMap map[string]string) (*Configuration, error)
func NewRemoteConfiguration ¶ added in v1.0.52
func NewRemoteConfiguration(baseConfig []byte, envMap map[string]string, f godb.JSONFetcher, settingsPath string, updateFrequency time.Duration) (*Configuration, error)
func (*Configuration) StopUpdates ¶ added in v1.0.52
func (c *Configuration) StopUpdates()
StopUpdates sends a stop signal if there is a currently running updater.
Click to show internal directories.
Click to hide internal directories.