config

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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