chain

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

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

Chain - jobs executed one after the other

func NewChain

func NewChain(j []job.Request, bc *core.BlockChain, pq *queue.JobPriorityQueue, jc *cache.JobCache) (*Chain, error)

NewChain returns chain

func (*Chain) Cancel

func (c *Chain) Cancel()

Cancel terminates exec

func (*Chain) Dispatch

func (c *Chain) Dispatch()

Dispatch executes the chain

func (Chain) GetCancelChan

func (c Chain) GetCancelChan() chan struct{}

GetCancelChan returns cancel channel

func (Chain) GetJobs

func (c Chain) GetJobs() []job.Request

GetJobs returns jobs

func (Chain) GetStatus

func (c Chain) GetStatus() string

GetStatus returns status

func (Chain) Result

func (c Chain) Result() []job.Request

Result returns result

Jump to

Keyboard shortcuts

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