Add API endpoint to pause a worker

This commit is contained in:
simon987
2019-05-05 19:09:45 -04:00
parent 8f10567bd0
commit 72c8e18044
8 changed files with 378 additions and 231 deletions

View File

@@ -269,6 +269,11 @@ type UpdateWorkerRequest struct {
Alias string `json:"alias"`
}
type WorkerSetPausedRequest struct {
Worker int64 `json:"worker"`
Paused bool `json:"paused"`
}
type CreateWorkerRequest struct {
Alias string `json:"alias"`
}