qItem

package
v0.0.0-...-eef6c14 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Job  job.Job
	Exec *job.Exec
	// contains filtered or unexported fields
}

Item used for keeping track of execs

func NewItem

func NewItem(j job.Job, exec *job.Exec, results chan<- Item, cancel chan<- struct{}) Item

NewItem initializes a new item

func (Item) GetCancel

func (i Item) GetCancel() chan<- struct{}

GetCancel returns cancel channel

func (Item) GetExec

func (i Item) GetExec() *job.Exec

GetExec returns exec

func (Item) GetID

func (i Item) GetID() string

GetID returns job id

func (Item) GetJob

func (i Item) GetJob() job.Job

GetJob returns job

func (Item) ResultsChan

func (i Item) ResultsChan() chan<- Item

ResultsChan return result chan

func (*Item) SetExec

func (i *Item) SetExec(ex *job.Exec)

SetExec sets exec

Jump to

Keyboard shortcuts

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