Implement rule matching for a couple of basic rule types.

This commit is contained in:
Anna Rose Wiggins 2025-07-01 17:49:23 -04:00
parent 5b3b70da14
commit 970b3ded6e
3 changed files with 64 additions and 15 deletions

View file

@ -22,7 +22,8 @@ type DeviceConfig struct {
type RuleConfig struct {
Name string `yaml:"name,omitempty"`
Type string `yaml:"type"`
Input []RuleInputConfig `yaml:"input"`
Input RuleInputConfig `yaml:"input,omitempty"`
Inputs []RuleInputConfig `yaml:"inputs,omitempty"`
Output RuleOutputConfig `yaml:"output"`
}