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:
parent
a6aa8fe4c8
commit
2ea53e1432
1 changed files with 7 additions and 2 deletions
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue