package
Version:
v0.1.20
Opens a new window with list of versions in this module.
Published: Jul 26, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
FileDirectory string `yaml:"file_directory"`
SQLiteDbFile string `yaml:"store_db"`
MaxTextMessageSize int `yaml:"max_text_message_size"`
MailCheckTimeout int `yaml:"mail_check_timeout"`
}
type Config struct {
App App `yaml:"app"`
Imap []Imap `yaml:"imap"`
Telegram Telegram `yaml:"telegram"`
}
type Imap struct {
ImapServer string `yaml:"imap_server"`
Login string `yaml:"login"`
Password string `yaml:"password"`
}
type Telegram struct {
BotToken string `yaml:"bot_token"`
Users []TelegramUser `yaml:"users"`
}
type TelegramUser struct {
UserId int64 `yaml:"user_id"`
ImapLogin []string `yaml:"imap_login"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.