plugins

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginCreators = map[string]Creator{}

Functions

func Add

func Add(name string, creator Creator)

func MayApplyPartials

func MayApplyPartials(p any) error

func MayDrop

func MayDrop(t any)

func MayGather

func MayGather(t any, q *safe.Queue[*types.Event])

func MayInit

func MayInit(t any) error

Types

type Creator

type Creator func() Plugin

type Dropper

type Dropper interface {
	Drop()
}

type Gatherer

type Gatherer interface {
	Gather(*safe.Queue[*types.Event])
}

type IApplyPartials

type IApplyPartials interface {
	ApplyPartials() error
}

type Initer

type Initer interface {
	Init() error
}

type Instance

type Instance interface {
	GetLabels() map[string]string
	GetInterval() config.Duration
	GetAlerting() config.Alerting
}

func MayGetInstances

func MayGetInstances(t any) []Instance

type InstancesGetter

type InstancesGetter interface {
	GetInstances() []Instance
}

type Plugin

type Plugin interface {
	GetLabels() map[string]string
	GetInterval() config.Duration
}

Jump to

Keyboard shortcuts

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