plugins

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(name string, new func() genapid.Predicate)

Add a plugin entrypoint to the enabled plugins

func Get

func Get(name string) genapid.Predicate

Get returns entrypoint of Plugin, if enabled

Types

type Plugins

type Plugins map[string]func() genapid.Predicate

Plugins store entrypoint functions of enabled plugins

func List

func List() Plugins

List available plugins

Jump to

Keyboard shortcuts

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