config

package
v0.0.0-...-c4cacf9 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Host string `env:"SERVER_HOST"`
	Port string `env:"SERVER_PORT"`

	DatabaseURI string        `env:"POSTGRES_URI"`
	Timeout     time.Duration `env:"POSTGRES_TIMEOUT"`

	GithubClientId     string `env:"GITHUB_CLIENT_ID"`
	GithubClientSecret string `env:"GITHUB_CLIENT_SECRET"`
}

func LoadConfig

func LoadConfig() *Configuration

Jump to

Keyboard shortcuts

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