config

package
v0.0.0-...-227fd47 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfiguration

func ReadConfiguration(filename string) error

Types

type Config

type Config struct {
	Port                    int    `toml:"port"`
	Host                    string `toml:"host"`
	DatabaseHost            string `toml:"database_host"`
	DatabasePort            int    `toml:"database_port"`
	DatabaseUsername        string `toml:"database_username"`
	DatabaseName            string `toml:"database_name"`
	DatabasePassword        string `toml:"database_password"`
	DatabaseRootCertificate string `toml:"database_root_certificate"`

	LogEntriesHost string `toml:"logentries_host"`
	LogEntriesKey  string `toml:"logentries_token"`

	Region string `toml:"region"`

	PasswordBucket string `toml:"password_bucket"`
	PasswordKey    string `toml:"password_key"`

	FrontendAssets            string `toml:"frontend_assets"`
	FrontendAssetsLocalPrefix string `toml:"frontend_assets_local_prefix"`
	FrontendAssetsBucket      string `toml:"frontend_assets_bucket"`
	FrontendAssetsKey         string `toml:"frontend_assets_key"`

	SyncPeriod  int `toml:"sync_period"`
	ScalePeriod int `toml:"scale_period"`

	KillStuckJobs bool `toml:"kill_stuck_jobs"`

	UseDatadogTracing bool `toml:"use_datadog_tracing"`
}
var Conf Config

Store config in a global variable

Jump to

Keyboard shortcuts

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