Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { ServerConfiguration DatabaseConfiguration Secrets }
func Configure ¶
func Configure() (*Configuration, error)
func (*Configuration) GetConfiguration ¶
func (c *Configuration) GetConfiguration(v viper.Viper)
func (*Configuration) GetSecrets ¶
func (c *Configuration) GetSecrets() error
type DatabaseConfiguration ¶
type DatabaseConfiguration struct { DbMigrationLocation string `json:"MIGRATION_LOCATION"` DbSchema string `json:"DB_SCHEMA"` DbHost string `json:"DB_HOST"` DbPort string `json:"DB_PORT"` }
func GetDatabaseConfig ¶
func GetDatabaseConfig(vipe viper.Viper) DatabaseConfiguration
type DatabaseSecrets ¶
type Secrets ¶
type Secrets struct {
DatabaseSecrets
}
type ServerConfiguration ¶
type ServerConfiguration struct { SrvPort string `json:"SERVER_PORT"` SrvSecretsFile string `json:"SECRETS_FILE"` }
func GetServerConfig ¶
func GetServerConfig(vipe viper.Viper) ServerConfiguration
Click to show internal directories.
Click to hide internal directories.