queue

package
v2.17.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 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