config

package
v0.0.0-...-14673b9 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: MIT Imports: 2 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 {
	Endpoint string `env:"API_ENDPOINT"`

	TelegramToken string `env:"TELEGRAM_TOKEN"`

	Text Text
}

func ReadConfig

func ReadConfig() *Config

ReadConfig from env

type Text

type Text struct {
	Subscribe    string `env:"TEXT_SUBSCRIBE"`
	Unsubscribe  string `env:"TEXT_UNSUBSCRIBE"`
	Hello        string `env:"TEXT_HELLO"`
	Subscribed   string `env:"TEXT_SUBSCRIBED"`
	Unsubscribed string `env:"TEXT_UNSUBSCRIBED"`
}

Jump to

Keyboard shortcuts

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