Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier[K any] struct { // contains filtered or unexported fields }
func NewNotifier ¶
type TopicCallbackNotifier ¶
type TopicCallbackNotifier[K any] struct { // contains filtered or unexported fields }
func NewTopicCallbackNotifier ¶
func NewTopicCallbackNotifier[K any](topics []string) *TopicCallbackNotifier[K]
func (*TopicCallbackNotifier[K]) Attach ¶
func (t *TopicCallbackNotifier[K]) Attach(topic string, observer ObserverCallback[K]) error
type TopicNotifier ¶
type TopicNotifier[K any] struct { // contains filtered or unexported fields }
func NewTopicNotifier ¶
func NewTopicNotifier[K any](topics []string) *TopicNotifier[K]
func (*TopicNotifier[K]) Attach ¶
func (n *TopicNotifier[K]) Attach(topic string, observer Observer[K]) error
func (*TopicNotifier[K]) Detach ¶
func (n *TopicNotifier[K]) Detach(observer Observer[K]) error
Click to show internal directories.
Click to hide internal directories.