g

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

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 HttpConfig struct {
	Enable bool   `json:"enable"`
	Listen string `json:"listen"`
}

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"`
}

type RpcConfig

type RpcConfig struct {
	Enable bool   `json:"enable"`
	Listen string `json:"listen"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL