1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

added initial replyMethod

This commit is contained in:
postmannen 2021-04-13 13:50:00 +02:00
parent a6aa8fe4c8
commit 2ea53e1432

View file

@ -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, 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"`