Documentation ¶
Index ¶
Constants ¶
View Source
const DatabaseErrorMessage string = "数据库错误,请联系开发者修 bug。开源地址:https://github.com/yukichan-bot-module/MiraiGo-module-weather"
DatabaseErrorMessage 数据库错误信息
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Key string `yaml:"key"` Limit int `yaml:"limit"` Admin []int64 `yaml:"admin"` Allowed []int64 `yaml:"allowed"` BlackList []int64 `yaml:"blacklist"` WhiteList []int64 `yaml:"whitelist"` DB struct { Type string `yaml:"type"` MySQL struct { Username string `yaml:"username"` Password string `yaml:"password"` Host string `yaml:"host"` Port string `yaml:"port"` Database string `yaml:"database"` Charset string `yaml:"charset"` } `yaml:"mysql"` SQLite struct { Path string `yaml:"path"` } `yaml:"sqlite"` } `yaml:"db"` Daily []struct { GroupCode int64 `yaml:"group"` Longitude float64 `yaml:"longitude"` Latitude float64 `yaml:"latitude"` Time string `yaml:"time"` Type string `yaml:"type"` Notify string `yaml:"notify"` } `yaml:"daily"` }
Config 模块配置
Click to show internal directories.
Click to hide internal directories.