Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSubscriber ¶
func NewSubscriber() *memSubscriber
Types ¶
type Observer ¶
type Observer interface { Subscribe(channel string) Subscriber Publish(channel string, msg interface{}) error Unsubscribe(channel string, subscriber Subscriber) error PubNumSub(channel string) map[string]int }
func NewObserver ¶
type Subscriber ¶
type Subscriber interface { Channel() <-chan interface{} Close() error }
Click to show internal directories.
Click to hide internal directories.