Documentation ¶
Index ¶
Constants ¶
View Source
const ( Insert int = iota Replace Append )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Selector ¶
type Selector interface { // Insert will insert one rule into trie // if table is empty, insert rule into schema level // otherwise insert rule into table level Insert(schema, table string, rule interface{}, insertType int) error // Match will return all matched rules Match(schema, table string) RuleSet // Remove will remove one rule Remove(schema, table string) error // AllRules will returns all rules AllRules() (map[string][]interface{}, map[string]map[string][]interface{}) }
Selector stores rules of schema/table for easy retrieval
Click to show internal directories.
Click to hide internal directories.