package
Version:
v0.0.1-alpha-8
Opens a new window with list of versions in this module.
Published: Apr 13, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Handler interface {
Handle(interface{})
}
type Message struct {
Payload interface{}
}
Pair represents a pair of a watcher and a handler, to which the watcher pushes messages
which the handler processes
Listen begins the actions of the handler and the watcher
Queue is a wrapper of a go channel, particularly to restrict actions on the channel itself
Push pushes a message to the channel
type Watcher interface {
Watch(queue *Queue)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.