Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Server Server Database Database SecretKey string `envconfig:"SECRET_KEY"` }
func Load ¶
func Load() (*Configuration, error)
func (Configuration) Validate ¶
func (c Configuration) Validate() error
type Postgres ¶
type Postgres struct { Host string `envconfig:"POSTGRES_HOST" validate:"required"` Port string `envconfig:"POSTGRES_PORT" validate:"required"` User string `envconfig:"POSTGRES_USER" validate:"required"` Password string `envconfig:"POSTGRES_PASSWORD" validate:"required"` Database string `envconfig:"POSTGRES_DATABASE" validate:"required"` SSLMode string `envconfig:"POSTGRES_SSL_MODE"` }
func (Postgres) BuildConnectionString ¶
Click to show internal directories.
Click to hide internal directories.