qItem

package
v0.0.0-...-db26c95 Latest Latest
Warning

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

Go to latest
Published: May 26, 2018 License: MIT Imports: 3 Imported by: 20

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
}

func DeserializeItem

func DeserializeItem(b []byte) Item

func NewItem

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

func (Item) GetCancel

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

func (Item) GetExec

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

GetExec returns exec

func (Item) GetID

func (i Item) GetID() string

GetID returns 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) Serialize

func (i Item) Serialize() []byte

func (*Item) SetExec

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

sets exec

Jump to

Keyboard shortcuts

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