plugin

package
v0.0.0-...-a65319e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Name     string `json:"name"`
	Label    string `json:"label"`
	Type     string `json:"type"`
	Required bool   `json:"required"`
}

type InputParameters

type InputParameters map[string]interface{}

type Main

type Main struct {
}

func (Main) FindAll

func (main Main) FindAll(category string) ([]Plugin, errors.Error)

func (Main) GetPluginBySrc

func (main Main) GetPluginBySrc(src string) (*plugin.Plugin, errors.Error)

type Plugin

type Plugin struct {
	ID              string          `json:"id"`
	Category        string          `json:"category"`
	Name            string          `json:"name"`
	Src             string          `json:"src"`
	Description     string          `json:"description"`
	InputParameters InputParameters `json:"inputParameters"`
}

type UseCases

type UseCases interface {
	FindAll(category string) ([]Plugin, errors.Error)
	GetPluginBySrc(id string) (*plugin.Plugin, errors.Error)
}

func NewMain

func NewMain() UseCases

Jump to

Keyboard shortcuts

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