pluginLoader

package
v0.0.0-...-66cc6e4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright (c) 2022 Kells Kearney. All rights reserved.

Use of this source code is governed by the MIT License that can be found in the LICENSE file.

Copyright (c) 2022 Kells Kearney. All rights reserved.

Use of this source code is governed by the MIT License that can be found in the LICENSE file.

Copyright (c) 2022 Kells Kearney. All rights reserved.

Use of this source code is governed by the MIT License that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionPlugin

type ActionPlugin interface {
	Configure(pluginLog *zerolog.Logger, actionArgs map[string]string) error
	ProcessTrap(trap *pluginMeta.Trap) error
	SigUsr1() error
	SigUsr2() error
	Close() error
}

Filter action plugin interface

func LoadActionPlugin

func LoadActionPlugin(pluginPath string, plugin_name string) (ActionPlugin, error)

type GeneratorPlugin

type GeneratorPlugin interface {
	Configure(pluginLog *zerolog.Logger, actionArgs map[string]string) error
	GenerateTrap() (*pluginMeta.Trap, error)
	Close() error
}

func LoadGeneratorPlugin

func LoadGeneratorPlugin(pluginPath string, pluginName string) (GeneratorPlugin, error)

type MetricPlugin

type MetricPlugin interface {
	Configure(pluginLog *zerolog.Logger, args map[string]string, metric_definitions []pluginMeta.MetricDef) error
	Inc(int)
	Report() (string, error)
}

func LoadMetricPlugin

func LoadMetricPlugin(pluginPath string, pluginName string) (MetricPlugin, error)

Jump to

Keyboard shortcuts

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