config

package
v0.0.0-...-9f81391 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 9 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 {
	Host     string
	HTTPPort int
	GRPCPort int

	DisableTLS    bool
	PathToTLSCert string
	PathToTLSKey  string

	LogLevel  string
	LogFormat string
	LogRaw    bool

	SecretsManager string

	// Vault related
	VaultToken     string
	VaultTokenPath string
	VaultAddr      string

	// AWS secrets manager related
	AwsRegion     string
	AssumeAWSRole string

	// Special flags
	ConfigFilePath string
	DevMode        bool
	Version        bool
}

Config is an object for storing configuration variables set through Approzium's environment.

Please see https://approzium.org/configuration for elaboration upon each parameter.

func Parse

func Parse() (Config, error)

Parse returns the parsed config. A pointer is not returned because after first parse, the config is immutable.

Jump to

Keyboard shortcuts

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