processor

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RUNNERS_QUEUESIZE_DEFAULT  = 10
	RUNNERS_NBRUNNERS_DEFAULT  = 1
	RUNNERS_TIMEOUT_DEFAULT    = 0 // unlimited
	RUNNERS_JOBTHREADS_DEFAULT = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GalaxyProcessor

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

func (*GalaxyProcessor) CancelAnalyses

func (p *GalaxyProcessor) CancelAnalyses() (err error)

func (*GalaxyProcessor) InitProcessor

func (p *GalaxyProcessor) InitProcessor(url, apikey string, db database.BoosterwebDB, queuesize int)

func (*GalaxyProcessor) LaunchAnalysis

func (p *GalaxyProcessor) LaunchAnalysis(a *model.Analysis) (err error)

type LocalProcessor

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

func (*LocalProcessor) CancelAnalyses

func (p *LocalProcessor) CancelAnalyses() (err error)

func (*LocalProcessor) InitProcessor

func (p *LocalProcessor) InitProcessor(nbrunners, queuesize, timeout, jobthreads int, db database.BoosterwebDB)

func (*LocalProcessor) LaunchAnalysis

func (p *LocalProcessor) LaunchAnalysis(a *model.Analysis) (err error)

type Processor

type Processor interface {
	LaunchAnalysis(a *model.Analysis) error
	CancelAnalyses() error
}

Jump to

Keyboard shortcuts

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