config

package
v0.0.0-...-8355f41 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 1 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 {
	Host  string `envconfig:"API_HOST"`
	Port  uint   `envconfig:"API_PORT"`
	DB    string `envconfig:"PG_URL"`
	Auth0 struct {
		Domain   string `envconfig:"AUTH0_DOMAIN"`
		Audience string `envconfig:"AUTH0_AUDIENCE"`
	}
	Facebook struct {
		ClientID     string `envconfig:"FACEBOOK_CLIENT_ID"`
		ClientSecret string `envconfig:"FACEBOOK_CLIENT_SECRET"`
		RedirectURI  string `envconfig:"FACEBOOK_REDIRECT_URI"`
	}
}

Config is where all configuration is held for the applictaion

func Setup

func Setup() (*Config, error)

Setup processes the environment and returns an config struct to be used through the application

Jump to

Keyboard shortcuts

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