plugins

package
v0.0.0-...-73c17ce Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 3 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 interface {
	// Setup 不可以让插件更改到配置信息
	Setup(points *config.Configuration) PluginResult //触发Plugin执行
}

type PluginQueue

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

PluginQueue 插件队列

func NewPluginQueue

func NewPluginQueue() *PluginQueue

NewPluginQueue 构造函数创建插件队列

func (*PluginQueue) Add

func (p *PluginQueue) Add(t Plugin)

Add 添加插件

func (*PluginQueue) Len

func (p *PluginQueue) Len() int

Len 插件长度

func (*PluginQueue) Next

func (p *PluginQueue) Next() Plugin

Next 下一个插件

func (*PluginQueue) Prev

func (p *PluginQueue) Prev() Plugin

Prev 上一个插件

func (*PluginQueue) Remove

func (p *PluginQueue) Remove() Plugin

Remove 移除插件

type PluginResult

type PluginResult struct {
	PluginName string
	OutputFile api.OutputFile
}

Jump to

Keyboard shortcuts

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