plugins

package
v0.0.0-...-0ae16d5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoPlugin

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

func (*EchoPlugin) Init

func (plugin *EchoPlugin) Init(mapping map[int]interface{})

func (EchoPlugin) Invoke

func (plugin EchoPlugin) Invoke(args ...interface{}) string

func (*EchoPlugin) Mapping

func (plugin *EchoPlugin) Mapping() map[int]interface{}

func (EchoPlugin) Name

func (EchoPlugin) Name() string

type PluginFunc

type PluginFunc interface {
	Mapping() map[int]interface{}
	Init(mapping map[int]interface{})
	Name() string
	Invoke(args ...interface{}) string
}

PluginFunc plugin function

Jump to

Keyboard shortcuts

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