config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// Account name
	Account string

	// Password
	Password string

	// How long before to inform user there is prompt items
	PriorTime time.Duration

	// How often to fetch latest data
	UpdateInterval time.Duration

	Debug bool
}

func LoadAppConfig

func LoadAppConfig() (*App, error)

type Config

type Config struct {
	App      *App
	Telegram *Telegram
}

func LoadConfig

func LoadConfig() (*Config, error)

type Telegram

type Telegram struct {
	Token string
}

func LoadTelegramConfig

func LoadTelegramConfig() (*Telegram, error)

Jump to

Keyboard shortcuts

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