config

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BindAddr           string `env:"BIND_ADDR"`
	ZebedeeURL         string `env:"ZEBEDEE_URL"`
	RendererURL        string `env:"RENDERER_URL"`
	FilterAPIURL       string `env:"FILTER_API_URL"`
	DatasetAPIURL      string `env:"DATASET_API_URL"`
	MailHost           string `env:"MAIL_HOST"`
	MailUser           string `env:"MAIL_USER"`
	MailPassword       string `env:"MAIL_PASSWORD" json:"-"`
	MailPort           string `env:"MAIL_PORT"`
	FeedbackTo         string `env:"FEEDBACK_TO"`
	FeedbackFrom       string `env:"FEEDBACK_FROM"`
	DownloadServiceURL string `env:"DOWNLOAD_SERVICE_URL"`
	ServiceToken       string `env:"SERVICE_TOKEN"`
	EnableLoop11       bool   `env:"ENABLE_LOOP11"`
}

func Get

func Get() Config

Get ...

func (Config) String

func (config Config) String() string

String is implemented to prevent sensitive fields being logged. The config is returned as JSON with sensitive fields omitted.

Jump to

Keyboard shortcuts

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