gplugin

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path, sym, param string) (string, error)

func LoadPlugins

func LoadPlugins(cfgPath string) error

func Send

func Send(plugin, message string) error

Types

type MessageReceiver

type MessageReceiver interface {
	Name() string
	Recv(msg string) error
}

type Plugin

type Plugin struct {
	Path   string
	Symbol string
	Param  json.RawMessage
}

type PluginConfig

type PluginConfig struct {
	Plugins []*Plugin
}

type ReceiverCreator

type ReceiverCreator func(param string) (MessageReceiver, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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