variables

package
v0.0.0-...-95ef38e Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllEnvironmentVariables

type AllEnvironmentVariables struct {
	Deployed                          bool   `envconfig:"DEPLOYED" required:"true"`
	LogLevel                          string `envconfig:"LOG_LEVEL" required:"true"`
	PostgresHost                      string `envconfig:"POSTGRES_HOST" required:"true"`
	PostgresUser                      string `envconfig:"POSTGRES_USER" required:"true"`
	PostgresPassword                  string `envconfig:"POSTGRES_PASSWORD" required:"true"`
	PostgresPort                      int32  `envconfig:"POSTGRES_PORT" required:"true"`
	PostgresSSLMode                   string `envconfig:"POSTGRES_SSLMODE" required:"true"`
	PostgresDatabase                  string `envconfig:"POSTGRES_DATABASE" required:"true"`
	PostgresLazyConnect               bool   `envconfig:"POSTGRES_LAZY_CONNECT" required:"false"`
	PostgresPoolMaxConnectionLifetime string `envconfig:"POSTGRES_POOL_MAX_CONNECTION_LIFETIME" required:"false"`
	PostgresPoolMaxConnectionIdleTime string `envconfig:"POSTGRES_POOL_MAX_CONNECTION_IDLE_TIME" required:"false"`
	PostgresPoolMaxConnections        int32  `envconfig:"POSTGRES_POOL_MAX_CONNECTIONS" required:"false"`
	PostgresPoolMinConnections        int32  `envconfig:"POSTGRES_POOL_MIN_CONNECTIONS" required:"false"`
	PostgresPoolHealthCheckPeriod     int32  `envconfig:"POSTGRES_POOL_HEALTH_CHECK_PERIOD" required:"false"`
}

AllEnvironmentVariables is a struct that defines all of the available environment variables

func FetchAllEnvironmentVariables

func FetchAllEnvironmentVariables() AllEnvironmentVariables

FetchAllEnvironmentVariables returns all environment variables defined for the service

Jump to

Keyboard shortcuts

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