Finish up better parsing

This commit is contained in:
Philipp Heckel 2022-04-27 09:51:23 -04:00
parent 574e72a974
commit 1f6118f068
7 changed files with 443 additions and 395 deletions

View file

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