From 2ea53e14322cac4cea1192be1e51eb17ceec3d86 Mon Sep 17 00:00:00 2001 From: postmannen Date: Tue, 13 Apr 2021 13:50:00 +0200 Subject: [PATCH] added initial replyMethod --- message_and_subject.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/message_and_subject.go b/message_and_subject.go index 22060f6..87dc1e5 100644 --- a/message_and_subject.go +++ b/message_and_subject.go @@ -18,8 +18,13 @@ type Message struct { ID int `json:"id" yaml:"id"` // The actual data in the message Data []string `json:"data" yaml:"data"` - // method, what is this message doing, etc. CLI, syslog, etc. - Method Method `json:"method" yaml:"method"` + // Method, what is this message doing, etc. CLI, syslog, etc. + Method Method `json:"method" yaml:"method"` + // ReplyMethod, is the method to use for the reply message. + // By default the reply method will be set to log to file, but + // you can override it setting your own here. + ReplyMethod Method `json:"replyMethod" yaml:"replyMethod"` + // From what node the message originated FromNode node // Normal Reply wait timeout Timeout int `json:"timeout" yaml:"timeout"`