config

package
v0.0.0-...-87e7b27 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 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 Config

type Config struct {
	Imapc ConfigImapConcentrator `yaml:"imapc"`
	TgBot TelegramBot            `yaml:"telegram"`
}

func ReadConfig

func ReadConfig(filename string) (*Config, error)

type ConfigImapConcentrator

type ConfigImapConcentrator struct {
	Addr string `yaml:"addr" env:"ICADDR" env-default:"127.0.0.1:7070"`
	Key  string `yaml:"key" env:"ICKEY"`
}

type TelegramBot

type TelegramBot struct {
	Token string `yaml:"token" env:"TGTOKEN"`
}

Jump to

Keyboard shortcuts

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