queue

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 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 Queue

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

func New

func New() Queue

func (*Queue) Add

func (q *Queue) Add(t tasks.Task)

func (*Queue) Len

func (q *Queue) Len() int

func (*Queue) Pop

func (q *Queue) Pop() (tasks.Task, bool)

func (*Queue) SetStatus

func (q *Queue) SetStatus(taskId, taskSubId, status int)

func (*Queue) Status

func (q *Queue) Status(taskId int) int

type Status

type Status map[int]int

func (Status) Get

func (s Status) Get() (status int)

type StatusMap

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

func NewStatusMap

func NewStatusMap() *StatusMap

func (*StatusMap) Get

func (sm *StatusMap) Get(id int) int

func (*StatusMap) Set

func (sm *StatusMap) Set(id, subid, status int)

Jump to

Keyboard shortcuts

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