config

package
v0.0.0-...-c68f626 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 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 Values

type Values struct {
	BotToken          string        `long:"bot-token" env:"BOT_TOKEN"`
	LogLevel          string        `long:"log-level" default:"info" env:"LOG_LEVEL"`
	Debug             bool          `long:"debug" env:"DEBUG"`
	JSON              bool          `long:"json" env:"JSON" description:"write logs in json format"`
	DataReloadTimeout time.Duration `long:"data-reload-timeout" default:"30s" env:"DATA_RELOAD_TIMEOUT" description:"time between data reloads from google table"`
	PostgresURL       string        `long:"postgres-url" env:"POSTGRES_URL"`
	SpreadsheetID     string        `long:"spreadsheet-id" env:"SPREADSHEET_ID"`
}

func Get

func Get() Values

Jump to

Keyboard shortcuts

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