Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChinaMobileSmsConfig ¶
type ChinaMobileSmsConfig struct { ApiUrl string `mapstructure:"api-url" json:"apiUrl" yaml:"api-url"` EcName string `mapstructure:"ec-name" json:"ecName" yaml:"ec-name"` ApId string `mapstructure:"ap-id" json:"accessKeySecret" yaml:"ap-id"` SecretKey string `mapstructure:"secret-key" json:"secretKey" yaml:"secret-key"` TemplateId string `mapstructure:"template-id" json:"templateId" yaml:"template-id"` Sign string `mapstructure:"sign" json:"sign" yaml:"sign"` AddSerial string `mapstructure:"add-serial" json:"addSerial" yaml:"add-serial"` ToMobiles string `mapstructure:"to-mobiles" json:"to-mobiles" yaml:"to-mobiles"` Enable bool `mapstructure:"enable" json:"enable" yaml:"enable" ` }
移动短信
type DingDingConfig ¶
type DiscordConfig ¶
type EmailConfig ¶
type EmailConfig struct { Host string `mapstructure:"host" json:"host" yaml:"host"` Port int `mapstructure:"port" json:"port" yaml:"port"` Username string `mapstructure:"username" json:"username" yaml:"username"` Password string `mapstructure:"password" json:"password" yaml:"password"` EmailTo []string `mapstructure:"email-to" json:"EmailTo" yaml:"email-to"` Enable bool `mapstructure:"enable" json:"enable" yaml:"enable" ` }
type PushPlusConfig ¶
type ServerConfig ¶
type ServerConfig struct { SystemConfig SystemConfig `mapstructure:"system" json:"system" yaml:"system"` PushPlusConfig PushPlusConfig `mapstructure:"pushplus" json:"pushplus" yaml:"pushplus"` TelegramConfig TelegramConfig `mapstructure:"telegram" json:"telegram" yaml:"telegram"` DiscordConfig DiscordConfig `mapstructure:"discord" json:"discord" yaml:"discord"` EmailConfig EmailConfig `mapstructure:"email" json:"email" yaml:"email"` SmsConfig SmsConfig `mapstructure:"sms" json:"sms" yaml:"sms"` DingDingConfig DingDingConfig `mapstructure:"dingding" json:"dingding" yaml:"dingding"` ChinaMobileSmsConfig ChinaMobileSmsConfig `mapstructure:"china-mobile-sms" json:"chinaMobileSms" yaml:"china-mobile-sms"` UmsConfig UmsConfig `mapstructure:"ums" json:"ums" yaml:"ums"` ZapConfig ZapConfig `mapstructure:"zap" json:"zap" yaml:"zap"` }
type SmsConfig ¶
type SmsConfig struct { AccessKeyId string `mapstructure:"access-key-id" json:"accessKeyId" yaml:"access-key-id"` AccessKeySecret string `mapstructure:"access-key-secret" json:"accessKeySecret" yaml:"access-key-secret"` TemplateCode string `mapstructure:"template-code" json:"templateCode" yaml:"template-code"` SignNameJson string `mapstructure:"sign-name-json" json:"signNameJson" yaml:"sign-name-json"` SliderScene string `mapstructure:"slider-scene" json:"sliderScene" yaml:"slider-scene"` SliderAppKey string `mapstructure:"slider-app-key" json:"sliderAppKey" yaml:"slider-app-key"` Enable bool `mapstructure:"enable" json:"enable" yaml:"enable" ` }
type SystemConfig ¶
type TelegramConfig ¶
type UmsConfig ¶
type UmsConfig struct { Url string `mapstructure:"url" json:"url" yaml:"url"` TemplateCode string `mapstructure:"template-code" json:"templateCode" yaml:"template-code"` SPCode string `mapstructure:"spcode" json:"spcode" yaml:"spcode"` LoginName string `mapstructure:"loginname" json:"loginname" yaml:"loginname"` Password string `mapstructure:"password" json:"password" yaml:"password"` ToMobiles string `mapstructure:"to-mobiles" json:"to-mobiles" yaml:"to-mobiles"` Enable bool `mapstructure:"enable" json:"enable" yaml:"enable" ` }
联通短信
type ZapConfig ¶
type ZapConfig struct { Level string `mapstructure:"level" json:"level" yaml:"level"` Format string `mapstructure:"format" json:"format" yaml:"format"` Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"` Directory string `mapstructure:"directory" json:"directory" yaml:"directory"` LinkName string `mapstructure:"link-name" json:"linkName" yaml:"link-name"` ShowLine bool `mapstructure:"show-line" json:"showLine" yaml:"showLine"` EncodeLevel string `mapstructure:"encode-level" json:"encodeLevel" yaml:"encode-level"` StacktraceKey string `mapstructure:"stacktrace-key" json:"stacktraceKey" yaml:"stacktrace-key"` LogInConsole bool `mapstructure:"log-in-console" json:"logInConsole" yaml:"log-in-console"` }
Click to show internal directories.
Click to hide internal directories.