config

package
v0.0.0-...-4b85fb4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = []byte(`
app_mode = production
listen_addr = 0.0.0.0:8080

[chef]
server_url = http://localhost/organizations/example/
username = example
key_file = /path/to/example.pem
ssl_verify = true

[logging]
level = info
output = stdout
format = json
request_logging = true
log_health_checks = true

[server]
base_path = /
trusted_proxies =
`)

DefaultConfig provides the default config values that are used when no config file is specified Please keep defaults.ini in sync with this so there isn't any confusion

Functions

This section is empty.

Types

type Config

type Config struct {
	App     appConfig     `mapstructure:"default"`
	Chef    chefConfig    `mapstructure:"chef"`
	Logging loggingConfig `mapstructure:"logging"`
	Server  serverConfig  `mapstructure:"server"`
}

Jump to

Keyboard shortcuts

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