worker

package
v0.0.0-...-20c7f3d Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToContext

func ToContext(c Setter, worker *Worker)

func TryEnqueue

func TryEnqueue(c context.Context, job jobs.Job) bool

Types

type Setter

type Setter interface {
	Set(string, interface{})
}

type Worker

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

func FromContext

func FromContext(c context.Context) *Worker

func NewWorker

func NewWorker(store store.Store, config *viper.Viper) *Worker

func (*Worker) Run

func (worker *Worker) Run()

func (*Worker) TryEnqueue

func (worker *Worker) TryEnqueue(job jobs.Job) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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