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
}
Manager handles subscriptions and publications. Each manager is thread-safe
func NewManager ¶
func NewManager(options ...ManagerOption) *Manager
NewManager initializes a manager's internals. Do not allocate a struct of the manager directly.
type ManagerOption ¶
type ManagerOption func(m *Manager)
ManagerOption are function passed to NewManager to configure the manager
func DefaultSubscriberLastReceivedTimeout ¶
func DefaultSubscriberLastReceivedTimeout(timeout time.Duration) ManagerOption
DefaultSubscriberLastReceivedTimeout option sets a a timeout period when we have not received any packages to a subscriber for the timeout period
func DefaultSubscriberTimeout ¶
func DefaultSubscriberTimeout(timeout time.Duration) ManagerOption
DefaultSubscriberTimeout option sets a a timeout period when we have not received any packages to a subscriber for the timeout period
type SubscriberOption ¶
type SubscriberOption func(s *subscriber)
SubscriberOption are options passed to a particular subscribe function
Click to show internal directories.
Click to hide internal directories.