config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](cfg *T) error

Types

type Config

type Config struct {
	ClientID           string `env:"GOAP_CLIENT_ID"`
	ClientSecret       string `env:"GOAP_CLIENT_SECRET"`
	Issuer             string `env:"GOAP_ISSUER"`
	RedirectURL        string `env:"GOAP_REDIRECT_URL"`
	Host               string `env:"GOAP_HOST" envDefault:"http://localhost"`
	Port               int    `env:"GOAP_PORT" envDefault:"8080"`
	CustomTemplatePath string `env:"GOAP_CUSTOM_TEMPLATE_PATH"`
}

Jump to

Keyboard shortcuts

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