Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener waits for events in a Redis queue and hands them off to processors
func NewListener ¶
NewPublisher returns a new Publisher for the given redis connection and queue name
func (*Listener) Listen ¶
func (l *Listener) Listen(errFn events.ErrorHandler)
Listen spawns a non-blocking goroutine to listen for new events
func (*Listener) RegisterHandler ¶
func (l *Listener) RegisterHandler(name string, fn events.EventHandler)
RegisterHandler registers an event handler for events of the given string name
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher pushes events to a Redis circular queue
func NewPublisher ¶
NewPublisher returns a new Publisher for the given redis connection and queue name
Click to show internal directories.
Click to hide internal directories.