worker

package
v0.0.0-...-b6983a5 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verbose bool

TODO: maybe remove this as a global var

Functions

func RunWorker

func RunWorker(conf *Config) error

configFileName can be empty which means default config

Types

type Config

type Config struct {
	// sans trailing slash
	ControllerUrl  string
	Tags           []string
	SleepSeconds   int
	MaxJobs        int
	TimeoutSeconds int
	Syslog         bool
	SkipVerify     bool
	CAFile         string
}

type Worker

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

func NewWorker

func NewWorker(conf *Config) (*Worker, error)

func (*Worker) Start

func (w *Worker) Start()

This blocks and never ends except in a panic

Jump to

Keyboard shortcuts

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