Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func struct { // Match should return true when topic matches pattern. Match func(pattern, topic string) bool // contains filtered or unexported fields }
Func is an abstraction allowing simplified implementation of topic.Names implementations. It tracks a unique set of topics, updating when Add or Remove is called. Then, when Search is called, Func calls Match for each unique topic stored and each pattern sent to Search.
See exmaple implementations: Exact & Prefix.
Click to show internal directories.
Click to hide internal directories.