Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) PublishUpdate ¶
func (*Manager) Subscribe ¶
func (m *Manager) Subscribe(resourceID string, subscriber Subscriber)
func (*Manager) Unsubscribe ¶
type Subscriber ¶
func NewSubscriberFunction ¶
func NewSubscriberFunction(function func(Message) error) Subscriber
type SubscriberFunction ¶
type SubscriberFunction struct {
// contains filtered or unexported fields
}
func (*SubscriberFunction) ID ¶
func (sf *SubscriberFunction) ID() string
func (*SubscriberFunction) Notify ¶
func (sf *SubscriberFunction) Notify(message Message) error
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
Subscription represents a group of subscribers that are waiting for updates of a specific resource
Click to show internal directories.
Click to hide internal directories.