Documentation ¶
Index ¶
Constants ¶
View Source
const (
VERSION = "sdpv0.0.4"
)
v0.0.2 changes:send mail by smtp, set acount in config,add 99u msg ,phone by nexmo api v0.0.3 changes:im replace response msg with task_id,use new go-utils im.go sdpv0.0.4 go-utils rewrite sendmail, add record phone alarm group, fix bug of TransContent
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type AcountConfig ¶
type AcountConfig struct { IM *IMConfig `json:"im"` Phone *PhoneConfig `json:"phone"` Mail *MailConfig `json:"mail"` Wechat *WechatConfig `json:"wechat"` }
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` Http *HttpConfig `json:"http"` Redis *RedisConfig `json:"redis"` Queue *QueueConfig `json:"queue"` Worker *WorkerConfig `json:"worker"` Acount *AcountConfig `json:"acount"` Hosts *HostsConfig `json:"hosts"` }
func Config ¶
func Config() *GlobalConfig
type HostsConfig ¶
type HttpConfig ¶
type IMConfig ¶
type IMConfig struct { Uri string `json:"uri"` Password string `json:"password"` Group string `json:"group,omitempty"` PhoneGroup string `json:"phonegroup,omitempty"` }
group用来记录发送历史,为99U群号,所有发送历史都会汇总发到该群组(通过逗号分割)
type MailConfig ¶
type PhoneConfig ¶
type QueueConfig ¶
type RedisConfig ¶
type WechatConfig ¶
Click to show internal directories.
Click to hide internal directories.