conf

package
v0.0.0-...-6f2d7bc Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 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 Bot

type Bot struct {
	AdminID   int    `env:"ADMIN_TELEGRAM_ID"`
	ChannelID string `env:"CHANNEL_ID"`
	Token     string `env:"BOT_TOKEN"`
}

type Struct

type Struct struct {
	Bot              Bot
	VK               VK
	PrevDuration     time.Duration `env:"PREV_DURATION" envDefault:"200h"`
	PrevDurationHint time.Duration `env:"PREV_DURATION_HINT" envDefault:"200h"`
}

func ParseEnv

func ParseEnv() (*Struct, error)

type VK

type VK struct {
	Token string `env:"VK_TOKEN"`
}

Jump to

Keyboard shortcuts

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