Documentation ¶
Overview ¶
*********************************************************** ** @Description: server ** @Author: george hao ** @Date: 2018-11-29 11:13 ** @Last Modified by: george hao ** @Last Modified time: 2018-11-29 11:13 ************************************************************
*********************************************************** ** @Description: job ** @Author: george hao ** @Date: 2019-06-24 15:14 ** @Last Modified by: george hao ** @Last Modified time: 2019-06-24 15:14 ************************************************************
*********************************************************** ** @Description: log ** @Author: haodaquan ** @Date: 2018-08-22 23:00 ** @Last Modified by: haodaquan ** @Last Modified time: 2018-08-22 23:00 ************************************************************
*********************************************************** ** @Description: notify ** @Author: george hao ** @Date: 2019-06-26 15:17 ** @Last Modified by: george hao ** @Last Modified time: 2019-06-26 15:17 ************************************************************
*********************************************************** ** @Description: service ** @Author: george hao ** @Date: 2019-06-26 15:27 ** @Last Modified by: george hao ** @Last Modified time: 2019-06-26 15:27 ************************************************************
*********************************************************** ** @Description: server ** @Author: george hao ** @Date: 2018-11-29 11:24 ** @Last Modified by: george hao ** @Last Modified time: 2018-11-29 11:24 ************************************************************
*********************************************************** ** @Description: task ** @Author: george hao ** @Date: 2019-06-24 13:22 ** @Last Modified by: george hao ** @Last Modified time: 2019-06-24 13:22 ************************************************************
Index ¶
- Variables
- func Close() error
- func GetCmdMap(key string) *exec.Cmd
- func Heartbeat() error
- func InitConfig(path string) error
- func ListenSignal()
- func NLog(level string, value ...interface{})
- func Register() error
- func ResetCommandJob(id int, serverId int, name string, command string) *Job
- func RestJobFromTask(task *models.Task, serverId int) (*Job, error)
- func RpcRun() error
- func Run(j *Job) *JobResult
- func SaveConfig(key string, value string) error
- func SetCmdMap(key string, cmd *exec.Cmd)
- func WriteLog(r *http.Request, t time.Time, match string, pattern string)
- type RpcResult
- type RpcTask
Constants ¶
This section is empty.
Variables ¶
var C = new(common.Conf)
var CmdMap sync.Map
执行句柄map
var ConfPath string
var Env string