Documentation
¶
Index ¶
Constants ¶
View Source
const (
VERSION = "0.0.1"
)
changelog: 0.0.1: basic mail-sending service, http-api, readme. send mail concurrently
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func LoadConfig ¶
func LoadConfig(cfg string)
Types ¶
type GlobalConfig ¶
type GlobalConfig struct {
Debug bool `json:"debug"`
Http *HttpConfig `json:"http"`
Rpc *RpcConfig `json:"rpc"`
Mail *MailConfig `json:"mail"`
}
func GetConfig ¶
func GetConfig() *GlobalConfig
type HttpConfig ¶
type MailConfig ¶
type MailConfig struct {
Enable bool `json:"enable"`
SendConcurrent int `json:"sendConcurrent"`
MaxQueueSize int `json:"maxQueueSize"`
FromUser string `json:"fromUser"`
MailServerHost string `json:"mailServerHost"`
MailServerPort int `json:"mailServerPort"`
MailServerAccount string `json:"mailServerAccount"`
MailServerPasswd string `json:"mailServerPasswd"`
}
Click to show internal directories.
Click to hide internal directories.