config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotConfig

type BotConfig struct {
	Token           string        `env:"TOKEN" env-required:""`
	CacheExpiration time.Duration `env:"CACHE_EXPIRATION" env-default:"5m"`
	CachePurge      time.Duration `env:"CACHE_PURGE" env-default:"10m"`
	TelegramCache   int           `env:"TELEGRAM_CACHE" env-default:"300"`
	Debug           bool          `env:"DEBUG" env-default:"false"`
}

func GetConfig

func GetConfig() BotConfig

func LoadConfig

func LoadConfig() BotConfig

Jump to

Keyboard shortcuts

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