Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitApiServer ¶
func InitApiServer() (err error)
func InitConfig ¶
func InitJobMgr ¶
func InitJobMgr() (err error)
func InitLogMgr ¶
func InitLogMgr() (err error)
Types ¶
type Config ¶
type Config struct { ApiPort int `json:"apiPort"` ApiReadTimeout int `json:"apiReadTimeout"` ApiWriteTimeout int `json:"apiWriteTimeout"` EtcdEndpoints []string `json:"etcdEndpoints"` EtcdDialTimeout int `json:"etcdDialTimeout"` Webroot string `json:"webroot"` MongodbUri string `json:"mongodbUri"` MongodbConnectTimeout int `json:"mongodbConnectTimeout"` }
var (
G_Config *Config
)
配置单例
type JobMgr ¶
type JobMgr struct {
// contains filtered or unexported fields
}
var ( // 单例 G_jobMgr *JobMgr )
Click to show internal directories.
Click to hide internal directories.