Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IndexedParam ¶
type IndexedParam struct { Name string `json:"name"` // Type of the param // "int", "string" or "[]string" Type string `json:"type"` Unit string `json:"unit"` Required bool `json:"required"` }
IndexedParam declares the param info
type Metadata ¶
type Metadata struct { TemplateID string `json:"rule_template"` // Action of the rule performs // "retain" Action string `json:"action"` Parameters []*IndexedParam `json:"params"` }
Metadata defines metadata for rule registration
Click to show internal directories.
Click to hide internal directories.