Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldsArrayEquals ¶
func FieldsArrayEquals(a PatternFields, b PatternFields) bool
FieldsArrayEquals check if b is subset of a
Types ¶
type Bucket ¶
type Bucket struct { PatternSets PatternSets Weight int }
type PatternFieldValue ¶
type PatternFieldValue interface{}
type PatternFields ¶
type PatternFields map[string]PatternFieldValue
type PatternSet ¶
type PatternSet struct { Pattern interface{} Weight int Fields PatternFields Payload interface{} }
type PatternSets ¶
type PatternSets []*PatternSet
type Router ¶
type Router struct { Map *hashmap.Map Buckets []*Bucket IsDeep bool // contains filtered or unexported fields }
func (*Router) List ¶
func (r *Router) List() PatternSets
func (*Router) Lookup ¶
func (r *Router) Lookup(p interface{}) *PatternSet
Lookup Search for a specific pattern and returns it
Click to show internal directories.
Click to hide internal directories.