config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppPath string

Functions

func InitConfig

func InitConfig()

InitConfig 配置加载

Types

type AdBlock

type AdBlock struct {
	NumberOfForbiddenWords int   `mapstructure:"number_of_forbidden_words"`
	BlockTime              int64 `mapstructure:"block_time"`
}
var AdBlockC AdBlock

type Log

type Log struct {
	MaxSize    int `mapstructure:"max_size"`
	MaxAge     int `mapstructure:"max_age"`
	MaxBackups int `mapstructure:"max_backups"`
}
var LogC Log

type Message

type Message struct {
	JoinHint             string `mapstructure:"join_hint"`
	CaptchaImage         string `mapstructure:"captcha_image"`
	VerificationComplete string `mapstructure:"verification_complete"`
	BlockHint            string `mapstructure:"block_hint"`
}
var MessageC Message

type System

type System struct {
	JoinHintAfterDelTime int    `mapstructure:"join_hint_after_del_time"`
	CaptchaTimeout       int    `mapstructure:"captcha_timeout"`
	RuntimePath          string `mapstructure:"runtime_path"`
}
var SystemC System

type Telegram

type Telegram struct {
	BotToken    string  `mapstructure:"bot_token"`
	ApiProxy    string  `mapstructure:"api_proxy"`
	ManageUsers []int64 `mapstructure:"manage_users"`
}
var TelegramC Telegram

Jump to

Keyboard shortcuts

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