Versions in this module Expand all Collapse all v0 v0.3.1 Sep 21, 2016 v0.3.0 Sep 13, 2016 Changes in this version + const RuleAction + const RuleAny + const RuleRoute + type Entry struct + IV string + Payload string + type Filter struct + Destinations []string + IDs []string + RuleType int + Tags []string + func (f Filter) Empty() bool + func (f Filter) String() string + type InvalidRuleError struct + func (e *InvalidRuleError) Error() string + type JSONMarshalError struct + Message string + func (e *JSONMarshalError) Error() string + type Manager interface + AddRules func(namespace string, rules []Rule) (NewRules, error) + DeleteRules func(namespace string, filter Filter) error + GetRules func(namespace string, filter Filter) (RetrievedRules, error) + SetRules func(namespace string, filter Filter, rules []Rule) (NewRules, error) + UpdateRules func(namespace string, rules []Rule) error + func NewMemoryManager(validator Validator) Manager + func NewRedisManager(host, pass string, v Validator) Manager + type NewRules struct + IDs []string + type RedisInsertError struct + func (e *RedisInsertError) Error() string + type RetrievedRules struct + Revision int64 + Rules []Rule + type Rule struct + Actions json.RawMessage + Destination string + ID string + Match json.RawMessage + Priority int + Route json.RawMessage + Tags []string + func FilterRules(f Filter, rules []Rule) []Rule + type Validator interface + Validate func(Rule) error + func NewValidator() (Validator, error)