plugin

package
v0.0.0-...-015ad48 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AfterPluginStartedHandler func() error = nil

Functions

func EnablePlugins

func EnablePlugins(ctx context.Context, enables ...func(ctx context.Context))

func GetPluginByName

func GetPluginByName(name string) interface{}

func RegisterPlugin

func RegisterPlugin(name string, service interface{})

func StartPlugins

func StartPlugins(ctx context.Context)

func StopPlugins

func StopPlugins(ctx context.Context)

Types

type Plugin

type Plugin interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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