Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPayload = errors.New("invalid payload")
Functions ¶
func SetLogger ¶
func SetLogger(l *zap.SugaredLogger)
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func Start ¶
func Start(workers int, wl Workload) Dispatcher
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch(payload interface{}) chan bool
func (Dispatcher) DoAndStop ¶ added in v0.6.1
func (d Dispatcher) DoAndStop()
func (Dispatcher) Stop ¶
func (d Dispatcher) Stop()
type Task ¶
type Task struct { Payload interface{} Dispatcher *Dispatcher // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.