-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added YAML support to event selector configuration
- Loading branch information
1 parent
67cf094
commit 82d2dd9
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package event_selector | ||
|
||
type Selectors struct { | ||
Selectors []Selector `json:"selectors"` | ||
Selectors []Selector `yaml:"selectors"` | ||
} | ||
|
||
type Selector struct { | ||
TargetTopic string `json:"target_topic"` | ||
Matching map[string]string `json:"matching"` | ||
TargetTopic string `yaml:"target_topic"` | ||
Matching map[string]string `yaml:"matching"` | ||
} |