config

package
v0.0.0-...-642f069 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseURL                   string
	DatabaseConnectRetryCount int
	DatabaseConnectRetryDelay time.Duration
	DatabaseDebug             bool
	DatabaseHost              string
	DatabaseName              string
	DatabasePassword          string
	DatabasePort              int
	DatabaseSSLMode           string
	DatabaseUser              string
	Environment               string
	Hostname                  string
	Port                      int
	Version                   string
	OAuthStateCode            string
	EncodedEncryptionKey      string
	EncryptionKey             [32]byte
}

Config contains the environment specific configuration values needed by the application.

func New

func New() (*Config, error)

New returns an instance of Config based on the "ENVIRONMENT" environment variable.

Jump to

Keyboard shortcuts

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