plugin

package
v0.0.0-...-55d5d5f Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 4 Imported by: 0

README

internal/adapters/plugins

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	Databases *models.Repository
	Config    *models.PluginsConfig
	Log       logger.Logger
}

func (*Plugin) GetLastTrigger

func (p *Plugin) GetLastTrigger(plugin string, payload ...interface{}) interface{}

func (*Plugin) Info

func (p *Plugin) Info(plugin string) interface{}

func (*Plugin) Install

func (p *Plugin) Install(plugin string, sourceCode []byte) error

func (*Plugin) List

func (p *Plugin) List() []interface{}

TODO

func (*Plugin) Trigger

func (p *Plugin) Trigger(plugin string, payload ...interface{}) error

func (*Plugin) Uninstall

func (p *Plugin) Uninstall(plugin string) error

func (*Plugin) Upgrade

func (p *Plugin) Upgrade(plugin string, sourceCode []byte) error

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication(log logger.Logger, database interface{}, broker pubsub.PubSub, config *models.PluginsConfig) *Service

func (*Service) Info

func (s *Service) Info(s3 string, s2 string, i ...interface{}) (interface{}, error)

func (*Service) Install

func (s *Service) Install(i interface{}) error

func (*Service) List

func (s *Service) List() (interface{}, error)

func (*Service) Trigger

func (s *Service) Trigger(plugin string) error

func (*Service) Uninstall

func (s *Service) Uninstall(s2 string) error

func (*Service) Upgrade

func (s *Service) Upgrade(i interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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