pluginmanager

package
v0.0.0-...-b9f283a Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllPlugins

func GetAllPlugins() []*containerOfPlugin

func GetPluginByFilePath

func GetPluginByFilePath(filePath string) *containerOfPlugin

func GetPluginById

func GetPluginById(id string) *containerOfPlugin

func LoadPlugin

func LoadPlugin(path string) (plus_plugin.OnebotInterface, *plugin.Client, error)

func Register

func Register(
	filePath string,
	plugin plus_plugin.OnebotInterface,
	rpcCli *rpcPlugin.Client,
) error

func Start

func Start(ctx context.Context) error

func StartListenEvent

func StartListenEvent(ctx context.Context, eventCli *event.OnebotEventClient, apiCli api.OnebotApiClientInterface) error

Types

type PluginStatus

type PluginStatus int
const (
	PluginStatusHealthy PluginStatus = iota
	PluginStatusUnhealthy
)

Jump to

Keyboard shortcuts

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