config

package
v0.0.0-...-ea7ac5c Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 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 Config

type Config struct {
	APIKey              string `required:"true" split_words:"true"`
	ServerHost          string `default:"" split_words:"true"`
	ServerPort          string `default:"8080" split_words:"true"`
	PostgresUsername    string `default:"postgres" split_words:"true"`
	PostgresPassword    string `required:"true" split_words:"true"`
	PostgresHost        string `default:"postgres" split_words:"true"`
	PostgresPort        string `default:"5432" split_words:"true"`
	PostgresDatabase    string `default:"postgres" split_words:"true"`
	PostgresSSLMode     string `default:"disable" split_words:"true"`
	MigrationsDirectory string `default:"file://migrations" split_words:"true"`
}

Config contains the config values for the application.

func New

func New() (*Config, error)

New parses config from environment variables and returns an instance of config or an error.

Jump to

Keyboard shortcuts

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