modGearman

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultModGearmanKeyLength = 32

DefaultModGearmanKeyLength length of an gearman key

Variables

This section is empty.

Functions

func GetSecret

func GetSecret(secret, secretFile string) string

GetSecret parses the mod_gearman secret/file and returns one key.

func ShapeKey added in v0.2.2

func ShapeKey(key string, length int) []byte

ShapeKey expands the key to length, or cuts it.

Types

type GearmanWorker

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

GearmanWorker queries the gearmanserver and adds the extraced perfdata to the queue.

func NewGearmanWorker

func NewGearmanWorker(address, queue, key string, results collector.ResultQueues, livestatusCacheBuilder *livestatus.CacheBuilder) *GearmanWorker

NewGearmanWorker generates a new GearmanWorker. leave the key empty to disable encryption, otherwise the gearmanpacketes are expected to be encrpyten with AES-ECB 128Bit and a 32 Byte Key.

func (GearmanWorker) Stop

func (g GearmanWorker) Stop()

Stop stops the worker

Jump to

Keyboard shortcuts

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