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 +}