solo

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Solo

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

Solo - single job execution

func NewSolo

func NewSolo(jr job.Request, bc *core.BlockChain, pq *queue.JobPriorityQueue, jc *cache.JobCache) *Solo

NewSolo initializes solo

func (*Solo) Cancel

func (s *Solo) Cancel()

Cancel cancels exec

func (*Solo) Dispatch

func (s *Solo) Dispatch()

Dispatch executes the solo

func (Solo) GetCancelChan

func (s Solo) GetCancelChan() chan struct{}

GetCancelChan return cancel channel

func (Solo) GetJob

func (s Solo) GetJob() job.Request

GetJob returns job request

func (Solo) GetStatus

func (s Solo) GetStatus() string

GetStatus returns status

func (Solo) Result

func (s Solo) Result() job.Request

Result returns result

Jump to

Keyboard shortcuts

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