internal

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPlugin

func BuildPlugin(output string, dir string) error

BuildPlugin builds go plugins to provided directory

func BuildPlugins

func BuildPlugins(output string, dirs []string) error

BuildPlugins finds all plugins in given directories, check they exist then passes them over 1 by 1 to BuildPlugin for building

func LoadPlugin

func LoadPlugin(path string, handler func(v pkg.Plugin) error) error

LoadPlugin opens the .so file, perfroms a lookup for the exported 'Plugin variable' and checks it typing before passing it on the the handler

func LoadPlugins

func LoadPlugins(directory string, handler func(v pkg.Plugin) error) error

LoadPlugins finds all plugins in the provided directory and then passes them through to LoadPlugin

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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