Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockerMap ¶
type LockerMap struct {
// contains filtered or unexported fields
}
LockerMap is locker map based on memory.
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
PubSub is the memory implementation of PubSub, used for single agent or tests.
func (*PubSub) Subscribe ¶
func (m *PubSub) Subscribe( subscriber types.Client, topics []string, ) (*sync.Subscription, map[string][]types.Client, error)
Subscribe subscribes to the given topics.
func (*PubSub) Unsubscribe ¶
func (m *PubSub) Unsubscribe(topics []string, sub *sync.Subscription)
Unsubscribe unsubscribes the given topics.
Click to show internal directories.
Click to hide internal directories.