modGearman

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2016 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 map[data.Datatype]chan collector.Printable, 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