Documentation
¶
Index ¶
- Variables
- func ContainsWildcards(topic string) bool
- func Parse(topic string, allowWildcards bool) (string, error)
- type Node
- type Tree
- func (t *Tree) Add(topic string, value interface{})
- func (t *Tree) All() []interface{}
- func (t *Tree) Clear(value interface{})
- func (t *Tree) Count() int
- func (t *Tree) Empty(topic string)
- func (t *Tree) Get(topic string) []interface{}
- func (t *Tree) Match(topic string) []interface{}
- func (t *Tree) MatchFirst(topic string) interface{}
- func (t *Tree) Remove(topic string, value interface{})
- func (t *Tree) Reset()
- func (t *Tree) Search(topic string) []interface{}
- func (t *Tree) SearchFirst(topic string) interface{}
- func (t *Tree) Set(topic string, value interface{})
- func (t *Tree) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOutLength = errors.New("out length topic")
View Source
var ErrWildcards = errors.New("invalid use of wildcards")
View Source
var ErrZeroLength = errors.New("zero length topic")
Functions ¶
func ContainsWildcards ¶
Types ¶
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
func NewStandardTree ¶
func NewStandardTree() *Tree
func (*Tree) MatchFirst ¶
func (*Tree) SearchFirst ¶
Click to show internal directories.
Click to hide internal directories.