Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Vip = viper.New() ConfigFile = "" // ServerSetting global config ServerSetting = new(YamlSetting) )
Functions ¶
Types ¶
type DingTalkBot ¶
type DingTalkBot struct { WebHookUrl string `yaml:"webHookUrl"` AccessToken string `yaml:"accessToken"` SignToken string `yaml:"signToken"` AtUserIds []string `yaml:"atUserIds"` AtMobiles []string `yaml:"atMobiles"` IsAtAll bool `yaml:"isAtAll"` }
DingTalkBot notify
type Email ¶
type Email struct { Subject string `yaml:"subject"` Host string `yaml:"host"` Port int `yaml:"port"` Form string `yaml:"from"` Password string `yaml:"password"` To []string `yaml:"to"` }
Email notify
type Log ¶
type Log struct { AppName string `yaml:"appName"` Development bool `yaml:"development"` Level string `yaml:"level"` LogFileDir string `yaml:"logFileDir"` InfoFileName string `yaml:"infoFileName"` WarnFileName string `yaml:"warnFileName"` ErrorFileName string `yaml:"errorFileName"` DebugFileName string `yaml:"debugFileName"` MaxAge int `yaml:"maxAge"` MaxBackups int `yaml:"maxBackups"` MaxSize int `yaml:"maxSize"` }
Log log parameters
type Notify ¶
type Notify struct { IsEnable bool `yaml:"isEnable"` NotifyType string `yaml:"notifyType"` Email Email `yaml:"email"` Wechat Wechat `yaml:"wechat"` WechatBot WechatBot `yaml:"wechatbot"` DingTalkBot DingTalkBot `yaml:"dingtalkbot"` }
Notify send massage notify
type Sftp ¶
type Sftp struct { Hostname string `yaml:"hostname"` SshPort int `yaml:"sshPort"` Username string `yaml:"username"` Password string `yaml:"password"` }
Sftp sftp server host
type Sync ¶
type Sync struct { Name string `yaml:"name"` SourcePath string `yaml:"sourcePath"` TargetPath string `yaml:"targetPath"` }
Sync sync path parameters
type Wechat ¶
type Wechat struct { AccessTokenUrl string `yaml:"accessTokenUrl"` SendUrl string `yaml:"sendUrl"` CorpId string `yaml:"corpId"` CorpSecret string `yaml:"corpSecret"` ToUser string `yaml:"toUser"` AgentId int `yaml:"agentId"` }
Wechat notify
type WechatBot ¶
type WechatBot struct { WebHookUrl string `yaml:"webHookUrl"` Key string `yaml:"key"` MentionedList []string `yaml:"mentionedList"` MentionedMobileList []string `yaml:"mentionedMobileList"` }
WechatBot notify
Click to show internal directories.
Click to hide internal directories.