config

package
v0.0.0-...-ec6f98a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 3 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 {
	PandaScore struct {
		TeamId string `env:"PANDASCORE_TEAM_ID" env-default:"6224"`
		ApiKey string `env:"PANDASCORE_API_KEY"`
	}
	Calendar struct {
		Name            string `env:"CALENDAR_NAME" env-default:"Esport matches"`
		Color           string `env:"CALENDAR_COLOR" env-default:"red"`
		RefreshInterval string `env:"CALENDAR_REFRESH_INTERVAL" env-default:"P1D"`
	}
	Port   string `env:"PORT" env-default:"1710"`
	Secret string `env:"SECRET_KEY"`
}

func Init

func Init() (*Config, error)

Jump to

Keyboard shortcuts

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