job

package
v0.0.0-...-50a7404 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	ID       string
	PID      int
	CMD      string
	Name     string
	Desc     string
	Priority int
	Flags    []string
}

Job is struct of job

type JobQueue

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

JobQueue is struct of Job queue

func New

func New() *JobQueue

New is init JobQueue

func (*JobQueue) Dequeue

func (queue *JobQueue) Dequeue() interface{}

Dequeue is pop item in queue

func (*JobQueue) Enqueue

func (queue *JobQueue) Enqueue(item interface{})

Enqueue is push item to queue

type JobQueueItem

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

JobQueueItem is struct of QueueItem

Jump to

Keyboard shortcuts

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