config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version bool
	Help    bool
	BotCfg  *BotConfig
)

Functions

This section is empty.

Types

type BotConfig

type BotConfig struct {
	ConverterAPI  string       `yaml:"converterAPI"`
	MaxConn       int          `yaml:"maxConn"`
	MaxOnline     int          `yaml:"maxOnline"`
	LogLevel      log.LogLevel `yaml:"log_level"`
	Internal      int          `yaml:"internal"`
	TelegramToken string       `yaml:"telegramToken"`
}

type RawConfig

type RawConfig struct {
	Proxy []map[string]interface{} `yaml:"proxies"`
}

func UnmarshalRawConfig

func UnmarshalRawConfig(buf []byte) (*RawConfig, error)

Jump to

Keyboard shortcuts

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