config

package
v0.0.0-...-e1f8744 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlizzardConfig

type BlizzardConfig struct {
	AuthTokenUrl  string `json:"authTokenUrl"`
	TokenPriceUrl string `json:"tokenPriceUrl"`
}

type Config

type Config struct {
	HTTP           HTTPConfig           `json:"http"`
	Blizzard       BlizzardConfig       `json:"blizzard"`
	EpicGamesStore EpicGamesStoreConfig `json:"epicGamesStore"`
}

func New

func New(path string) *Config

func (*Config) Load

func (config *Config) Load(path string)

func (*Config) ValidateConfig

func (config *Config) ValidateConfig()

type EpicGamesStoreConfig

type EpicGamesStoreConfig struct {
	ProductBaseUrl  string `json:"productBaseUrl"`
	FreeGamesApiUrl string `json:"freeGamesApiUrl"`
}

type HTTPConfig

type HTTPConfig struct {
	Host              string `json:"host"`
	SocketPermissions string `json:"socketPermissions"`
	ListenHost        string `json:"listenHost"`
	ListenPort        int    `json:"listenPort"`
}

Jump to

Keyboard shortcuts

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