Documentation
¶
Overview ¶
Package leasequeue is the legacy facade for the canonical queue adapter.
Deprecated: use github.com/faustbrian/go-lease/adapters/queue.
Index ¶
- func TokenFromContext(ctx context.Context) (lease.Token, bool)deprecated
- type KeyFuncdeprecated
- type Workerdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Worker
deprecated
type Worker struct {
// contains filtered or unexported fields
}
Worker preserves the released queue worker type while delegating behavior to the canonical adapter.
Deprecated: use queue.Worker.
func (*Worker) Queue ¶
func (worker *Worker) Queue(task core.TaskMessage) error
Queue delegates to the caller-owned worker.
func (*Worker) Request ¶
func (worker *Worker) Request() (core.TaskMessage, error)
Request delegates to the caller-owned worker.
Click to show internal directories.
Click to hide internal directories.