queue

package
v2.5.0-beta.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue() *Queue

func (*Queue) Destroy

func (q *Queue) Destroy()

func (*Queue) Pop

func (q *Queue) Pop(ctx context.Context) (worker.BaseProcess, error)

func (*Queue) Push

func (q *Queue) Push(w worker.BaseProcess)

func (*Queue) Replace

func (q *Queue) Replace(oldPid int64, newWorker worker.BaseProcess)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL