handler

package
v3.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler() pkg.Handler

NewHandler creates & returns a new pkg.Handler struct

Types

type Handler

type Handler struct {
	pkg.Handler
	// contains filtered or unexported fields
}

Handler implements pkg.Handler

func (*Handler) GetPlugins

func (h *Handler) GetPlugins() []pkg.Plugin

GetPlugins will return an array of registered plugins

func (*Handler) LoadPlugins

func (h *Handler) LoadPlugins(plugins ...pkg.Plugin) error

LoadPlugins takes plugins, loads and registers them with the handler

func (*Handler) LoadPluginsDir

func (h *Handler) LoadPluginsDir(directory string) error

LoadPluginsDir will load all .so plugins in given directory

func (*Handler) Walk

func (h *Handler) Walk(handler func(manifest pkg.Manifest, plugin pkg.Plugin))

Walk will take you on a walk through the registered plugins for each plugin, the handler function passed through will be called

Jump to

Keyboard shortcuts

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