local

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

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

Broker run queue using local goroutines.

func (*Broker) Init

func (b *Broker) Init() (bool, error)

Init configures local job broker.

func (*Broker) Listen

func (b *Broker) Listen(pipelines []*jobs.Pipeline, pool chan jobs.Handler, err jobs.ErrorHandler) error

Listen configures broker with list of pipelines to listen and handler function. Broker broker groups all pipelines together.

func (*Broker) Push

func (b *Broker) Push(p *jobs.Pipeline, j *jobs.Job) (string, error)

Push new job to queue

func (*Broker) Serve

func (b *Broker) Serve() error

Serve local broker.

func (*Broker) Stop

func (b *Broker) Stop()

Stop local broker.

Jump to

Keyboard shortcuts

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