worker

package
v0.0.0-...-51876cf Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: MPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

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

Worker object to handle recieving, filtering and sending packets

func New

func New(log *common.Logger, cfg *common.Config, backend iface.Iface, filters []filter.Filter) *Worker

New work object

func (*Worker) Start

func (worker *Worker) Start(queue int)

Start the worker object

func (*Worker) Stop

func (worker *Worker) Stop()

Stop the worker object gracefully

Jump to

Keyboard shortcuts

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