worker

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package worker contains the core of the autodeb worker. It creates all dependencies injects them at the right place.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerURL        string
	WorkingDirectory string
	WriterOutput     io.Writer
	WriterError      io.Writer
}

Config contains configuration for Worker

type Worker

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

Worker is the autodeb worker. It retrieves jobs from the main server and executes them

func New

func New(cfg *Config) (*Worker, error)

New creates a Worker

func (*Worker) Close

func (w *Worker) Close() error

Close will shutdown the worker

Jump to

Keyboard shortcuts

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