Documentation ¶
Index ¶
Constants ¶
View Source
const EventChSize = 100
EventChSize is the size of subscriber's read channel.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector is the struct for posting event.
func GetCollector ¶
func GetCollector() *Collector
GetCollector returns single-instance event collector.
func (*Collector) Unsubscribe ¶
Unsubscribe deregisters a subscription from event collector.
type Subscription ¶
type Subscription struct { C chan<- *Event // contains filtered or unexported fields }
Subscription is a struct used for listening specific topics
Click to show internal directories.
Click to hide internal directories.