backends

package
v0.0.0-...-4097794 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusRunning int = 0
	StatusUnknown int = 1
	StatusError   int = 2
)

Variables

View Source
var (
	Store = &backendStore{backends: make(map[string]Backend)}
)

Functions

func RegisterBackend

func RegisterBackend(name string, c Creator) error

func SetStatusLogErrorf

func SetStatusLogErrorf(name string, format string, args ...interface{}) error

Types

type Backend

type Backend interface {
	Name() string
	Driver() string
	ExecPath() string
	ConfigurationPath() string
	ExecArgs() []string
	RenderOnChange(graylog.ResponseCollectorConfiguration) bool
	ValidateConfigurationFile() bool
	ValidatePreconditions() bool
	Status() system.Status
	SetStatus(int, string)
}

type Creator

type Creator func(*context.Ctx) Backend

func GetCreator

func GetCreator(name string) (Creator, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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