Documentation
¶
Index ¶
- Constants
- Variables
- func DelCronSata(id string)
- func GetAStat() map[string]string
- func GetCStat() map[string]StatCInfo
- func GetEStat() [20]string
- func GetRoot() string
- func GetTStat() [40]sIns
- func InitStat()
- func ParseConfig(cfg string)
- func SaveConfig()
- func SaveCronSata(id string, app string, funcs string, mode string, rule string, comment string)
- func SaveErrorStat(err string)
- func SaveTaskStat(ins SchedulerInstruct, flag int32, costtime int32)
- func UpdateCronSata(id string)
- func UpdateHbTime()
- type AgentCronConfig
- type ApiErrresut
- type ApiExecresult
- type Apiresut
- type AppCfgStrct
- type DevmodeConfig
- type GlobalConfig
- type HeartbeatConfig
- type HttpConfig
- type ProStrct
- type SchedulerConfig
- type SchedulerInstruct
- type StatCInfo
- type StatGInfo
Constants ¶
View Source
const (
VERSION = "0.4.3"
)
Variables ¶
Functions ¶
func GetTStat ¶
func GetTStat() [40]sIns
func InitStat ¶
func InitStat()
func SaveConfig ¶
func SaveConfig()
func SaveCronSata ¶
func SaveTaskStat ¶
func SaveTaskStat(ins SchedulerInstruct, flag int32, costtime int32)
func UpdateHbTime ¶
func UpdateHbTime()
Types ¶
type AgentCronConfig ¶
type ApiErrresut ¶
type ApiExecresult ¶
type Apiresut ¶
type Apiresut struct {
Flag string `json:"flag"`
Error string `json:"error"`
Result ApiExecresult `json:"result"`
}
type DevmodeConfig ¶
type GlobalConfig ¶
type GlobalConfig struct {
Asset string `json:"asset"`
Ip string `json:"ip"`
Port int `json:"port"`
AuthIps []string `json:"authips"`
HeartBeat *HeartbeatConfig `json:"heartbeat"`
Scheduler *SchedulerConfig `json:"scheduler"`
Agentcron *AgentCronConfig `json:"agentcron"`
Http *HttpConfig `json:"http"`
AppsDownloadAddr string `json:"appsdownloadaddr"`
Apps map[string]string `json:"apps"`
Devmode *DevmodeConfig `json:"devmode"`
}
func Config ¶
func Config() *GlobalConfig
type HeartbeatConfig ¶
type HttpConfig ¶
type ProStrct ¶
type SchedulerConfig ¶
type SchedulerInstruct ¶
type SchedulerInstruct struct {
ID string `thrift:"id,1" json:"id"`
IP string `thrift:"ip,2" json:"ip"`
Type string `thrift:"type,3" json:"type"`
Mode string `thrift:"mode,4" json:"mode"`
App string `thrift:"app,5" json:"app"`
Func string `thrift:"func,6" json:"func"`
Param string `thrift:"param,7" json:"param"`
Timeout int32 `thrift:"timeout,8" json:"timeout"`
Proxy string `thrift:"proxy,9" json:"proxy"`
}
type StatCInfo ¶
Source Files
¶
- cfg.go
- const.go
- stat.go
- strcut.go
Click to show internal directories.
Click to hide internal directories.