README ¶ go-swiss-rule A simple rules engin library for golang. Warning: The project still under development, don't use it in production. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func EvalAndInvoke(input map[string]interface{}, rule Rule) (bool, error) type Condition type IAction type Rule Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func EvalAndInvoke ¶ func EvalAndInvoke(input map[string]interface{}, rule Rule) (bool, error) Types ¶ type Condition ¶ type Condition struct { Key string Operator string Value interface{} Joint string } type IAction ¶ type IAction interface { Fire() error } type Rule ¶ type Rule struct { EventType string Conditions []Condition PositiveActions []IAction NegativeActions []IAction } Source Files ¶ View all Source files IActionPort.go condition.go go-swiss-rule.go rule.go Directories ¶ Show internal Expand all Path Synopsis utils errors Click to show internal directories. Click to hide internal directories.