gorush/queue/worker.go

11 lines
164 B
Go

package queue
// Worker interface
type Worker interface {
Run(chan struct{}) error
Shutdown() error
Queue(job interface{}) error
Capacity() int
Usage() int
}