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 ¶
View Source
var ( Root string ConfigFile string )
Functions ¶
func DelCronSata ¶
func DelCronSata(id string)
func ParseConfig ¶
func ParseConfig(cfg string)
func SaveConfig ¶
func SaveConfig()
func SaveCronSata ¶
func SaveErrorStat ¶
func SaveErrorStat(err string)
func SaveTaskStat ¶
func SaveTaskStat(ins SchedulerInstruct, flag int32, costtime int32)
func UpdateCronSata ¶
func UpdateCronSata(id string)
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 AppCfgStrct ¶
type AppCfgStrct struct {
Pro *ProStrct `json:"Processor"`
}
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 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"` }
Click to show internal directories.
Click to hide internal directories.