Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitJobMgr ¶
func InitJobMgr() (err error)
func InitLogMgr ¶
func InitLogMgr() (err error)
func InitWorkerMgr ¶
func InitWorkerMgr() (err error)
Types ¶
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
任务的HTTP接口
var ( // 单例对象 G_apiServer *ApiServer )
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.