From 126c0fcd0b12f24bb97ade4c409de9648879f442 Mon Sep 17 00:00:00 2001 From: "insanity@loafle.com" Date: Mon, 15 May 2017 18:51:37 +0900 Subject: [PATCH] task --- messages/agent.go | 3 +-- messages/task.go | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/messages/agent.go b/messages/agent.go index 60547cb..2fccec9 100644 --- a/messages/agent.go +++ b/messages/agent.go @@ -1,8 +1,7 @@ package messages const ( - AGT_STARTING = "AGT_STARTING" - AGT_WILL_STOP = "AGENT_WILL_STOP" + AGT_START = "AGENT_WILL_STOP" AGT_STOPPED = "AGENT_STOPPED" AGT_INITIALIZED = "AGT_INITIALIZED" ) diff --git a/messages/task.go b/messages/task.go index daf7773..2689f66 100644 --- a/messages/task.go +++ b/messages/task.go @@ -4,3 +4,9 @@ type AgentTask struct { Command string Params map[string]string } + +type TaskResult struct { + Command string + Success bool + Err error +}