Skip to content

Commit

Permalink
Update executor.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rushuinet committed Jan 13, 2022
1 parent bc9e69b commit f3a2ef5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ type Executor interface {
KillTask(writer http.ResponseWriter, request *http.Request)
// TaskLog 任务日志
TaskLog(writer http.ResponseWriter, request *http.Request)
// Beat 心跳检测
Beat(writer http.ResponseWriter, request *http.Request)
// IdleBeat 忙碌检测
IdleBeat(writer http.ResponseWriter, request *http.Request)
// Run 运行服务
Run() error
// Stop 停止服务
Expand Down Expand Up @@ -350,6 +354,11 @@ func (e *executor) TaskLog(writer http.ResponseWriter, request *http.Request) {
e.taskLog(writer, request)
}

// Beat 心跳检测
func (e *executor) Beat(writer http.ResponseWriter, request *http.Request) {
e.beat(writer, request)
}

// IdleBeat 忙碌检测
func (e *executor) IdleBeat(writer http.ResponseWriter, request *http.Request) {
e.idleBeat(writer, request)
Expand Down

0 comments on commit f3a2ef5

Please sign in to comment.