topic

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func ContainsWildcards(topic string) bool

func Parse

func Parse(topic string, allowWildcards bool) (string, error)

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

type Tree

type Tree struct {
	// contains filtered or unexported fields
}

func NewStandardTree

func NewStandardTree() *Tree

func NewTree

func NewTree(separator, wildcardOne, wildcardSome string) *Tree

func (*Tree) Add

func (t *Tree) Add(topic string, value interface{})

func (*Tree) All

func (t *Tree) All() []interface{}

func (*Tree) Clear

func (t *Tree) Clear(value interface{})

func (*Tree) Count

func (t *Tree) Count() int

func (*Tree) Empty

func (t *Tree) Empty(topic string)

func (*Tree) Get

func (t *Tree) Get(topic string) []interface{}

func (*Tree) Match

func (t *Tree) Match(topic string) []interface{}

func (*Tree) MatchFirst

func (t *Tree) MatchFirst(topic string) interface{}

func (*Tree) Remove

func (t *Tree) Remove(topic string, value interface{})

func (*Tree) Reset

func (t *Tree) Reset()

func (*Tree) Search

func (t *Tree) Search(topic string) []interface{}

func (*Tree) SearchFirst

func (t *Tree) SearchFirst(topic string) interface{}

func (*Tree) Set

func (t *Tree) Set(topic string, value interface{})

func (*Tree) String

func (t *Tree) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL