config

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 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