config

package
v0.0.0-...-3beaeaf Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 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 APIConfig

type APIConfig struct {
	Environment        string   `env:"API_ENV,required"`
	Port               string   `env:"API_PORT,required"`
	BaseURL            string   `env:"API_BASE_URL,required"`
	AllowedCORSDomains []string `env:"API_ALLOWED_CORS_DOMAINS"`
}

type AppConfig

type AppConfig struct {
	API *APIConfig
}

func Load

func Load() (*AppConfig, error)

Jump to

Keyboard shortcuts

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