Documentation ¶
Index ¶
- type LockerMap
- type PubSub
- func (m *PubSub) Members() map[string]*sync.AgentInfo
- func (m *PubSub) Publish(publisherID *time.ActorID, topic string, event sync.DocEvent)
- func (m *PubSub) Subscribe(subscriber types.Client, topics []string) (*sync.Subscription, map[string][]types.Client, error)
- func (m *PubSub) Unsubscribe(topics []string, sub *sync.Subscription)
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 ¶
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.