config

package
v0.0.0-...-b4f78c5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 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 BotConfig

type BotConfig struct {
	TelegramToken    string `envconfig:"TELEGRAM_TOKEN" required:"false"`
	DatabaseURL      string `envconfig:"DATABASE_URL" required:"false" default:"telegram:telegram@tcp(localhost:3306)/telegram?parseTime=true"`
	MaxReminders     int    `envconfig:"MAX_REMINDERS" default:"3"`
	NotificationTime int    `envconfig:"NOTIFICATION_TIME" default:"30"`
}

BotConfig ...

func Get

func Get() (*BotConfig, error)

Get config data from environment

Jump to

Keyboard shortcuts

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