Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler func(event *Event)
Handler is a callback function used to handle received event
type Queue ¶
type Queue interface { Publish(event *Event) error Subscribe(topic string, handler Handler) (Subscription, error) Close() }
Queue is an abstraction over possible implementation of messaging
type Subscription ¶
type Subscription interface {
Unsubscribe() error
}
Subscription represents an active subscription within Queue. Subscription can be stopped by calling Unsubscribe()
Click to show internal directories.
Click to hide internal directories.