plugins

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Zlib Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Alarm = "alarm"
)

Variables

This section is empty.

Functions

func Add added in v0.1.7

func Add(name string, p Plugin)

func Do added in v0.1.6

func Do(name string, d interface{}) result.Result

func Remove added in v0.1.7

func Remove(name string)

Types

type Plugin added in v0.1.6

type Plugin interface {
	//Do name is plugin's name
	Do(name string, d interface{}) result.Result
}

func Get

func Get(name string) Plugin

type Plugins

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

Jump to

Keyboard shortcuts

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