configs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 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 BlizzApiCfg

type BlizzApiCfg struct {
	RegionList   []string
	EuAPIUrl     string `envconfig:"BLIZZARD_EU_API_URL" default:"https://eu.api.blizzard.com"`
	UsAPIUrl     string `envconfig:"BLIZZARD_US_API_URL" default:"https://us.api.blizzard.com"`
	AUTHUrl      string `envconfig:"BLIZZARD_AUTH_URL" default:"https://us.battle.net/oauth/token"`
	ClientSecret string `envconfig:"BLIZZARD_CLIENT_SECRET" required:"true"`
	ClientID     string `envconfig:"BLIZZARD_CLIENT_ID" required:"true"`
	AuthTimeOut  int    `envconfig:"BLIZZARD_AUTH_TIMEOUT" default:"3"`
}

type Config

type Config struct {
	AppPort string `envconfig:"APP_PORT" required:"true"`
	LogLvl  string `envconfig:"LOG_LEVEL" default:"INFO"`
	BlizzApiCfg
}

func NewConfig

func NewConfig() (*Config, error)

Jump to

Keyboard shortcuts

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