plugin

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	Name        string                 `json:"name"`
	DisplayName string                 `json:"displayName"`
	Description string                 `json:"description"`
	Home        bool                   `json:"home"`
	Type        string                 `json:"type"`
	Options     map[string]interface{} `json:"options"`
}

Plugin defines the structure for all plugins. All plugins must register with the configured name, display name, description and type. The optional options field can be used to use values from the plugin configuration in the frontend.

type Plugins

type Plugins []Plugin

Plugins is our custom type, which holds the plugin data of all plugins.

func (*Plugins) Append

func (p *Plugins) Append(plugin Plugin)

Append is used to add a new plugin instance to our custom plugins type.

Jump to

Keyboard shortcuts

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