Finish up better parsing
This commit is contained in:
parent
574e72a974
commit
1f6118f068
7 changed files with 443 additions and 395 deletions
|
@ -56,6 +56,13 @@ type action struct {
|
|||
Extras map[string]string `json:"extras,omitempty"` // used in "broadcast" action
|
||||
}
|
||||
|
||||
func newAction() *action {
|
||||
return &action{
|
||||
Headers: make(map[string]string),
|
||||
Extras: make(map[string]string),
|
||||
}
|
||||
}
|
||||
|
||||
// publishMessage is used as input when publishing as JSON
|
||||
type publishMessage struct {
|
||||
Topic string `json:"topic"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue