Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitJobMgr ¶
func InitJobMgr() (err error)
func RegisterRouter ¶
func RegisterRouter() *httprouter.Router
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"` }
var (
G_config *Config
)
Click to show internal directories.
Click to hide internal directories.