configs

package
v0.0.0-...-75e4868 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	DbMigrationLocation string `env:"FLAGR_MIGRATION_LOCATION"`
	DbSchema            string `env:"FLAGR_DB_SCHEMA"`
	DbHost              string `env:"FLAGR_DB_HOST"`
	DbPort              string `env:"FLAGR_DB_PORT"`
	SrvPort             string `env:"FLAGR_SERVER_PORT"`
	SrvSecretsFile      string `env:"FLAGR_SECRETS_FILE"`
	Secrets
}

func Configure

func Configure() (*Env, error)

func (*Env) LoadSecretsFile

func (env *Env) LoadSecretsFile(vipe *viper.Viper) error

func (*Env) RegisterEnvironmentVariables

func (env *Env) RegisterEnvironmentVariables(vipe *viper.Viper) error

type Secrets

type Secrets struct {
	DbUser    string `mapstructure:"dbUser"`
	DbPass    string `mapstructure:"dbPass"`
	SrvJwtKey string `mapstructure:"serverJwtKey"`
}

Jump to

Keyboard shortcuts

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