config

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: AGPL-3.0 Imports: 10 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 {
	RedisHost     string
	RedisPassword string
	PostgresDSN   string

	Secret []byte

	PasswordSalt             string
	ListenAddr               string
	DMRPort                  int
	HTTPPort                 int
	CORSHosts                []string
	TrustedProxies           []string
	HIBPAPIKey               string
	OTLPEndpoint             string
	InitialAdminUserPassword string
	Debug                    bool
	// contains filtered or unexported fields
}

Config stores the application configuration.

func GetConfig

func GetConfig() *Config

GetConfig obtains the current configuration On the first call, it will load the configuration from the environment variables.

Jump to

Keyboard shortcuts

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