Documentation ¶
Index ¶
- func CreateRule(json []byte) (string, string, error)
- func DeleteRule(id string) error
- func GetRules(sorts []string, pageSize int, page int) ([]model.Rule, int, int, int, int, int, int, int, error)
- func GetRulesAsJSON(sorts []string, pageSize int, page int) ([]byte, int, int, int, int, int, int, int, error)
- func GetRulesAsMaps(sorts []string, pageSize int, page int) ([]map[string]interface{}, int, int, int, int, int, int, int, error)
- func InitDatabase(url string, dbname string)
- func LoadRulesInMem() error
- func ProcessRules(entityType *string, entityJSON *string) ([]interface{}, error)
- func UpdateRule(id string, rev1 string, json []byte) (string, error)
- type Action
- type ExecuteActions
- type ExecuteGatherRules
- type ExecuteRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteRule ¶
func GetRulesAsJSON ¶
func GetRulesAsMaps ¶
func InitDatabase ¶
InitDatabase initialise the db. create it if does not exist and load in memory Rules
func LoadRulesInMem ¶
func LoadRulesInMem() error
func ProcessRules ¶
Types ¶
type ExecuteActions ¶
type ExecuteActions struct { }
type ExecuteGatherRules ¶
type ExecuteGatherRules struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.