Documentation ¶
Index ¶
- func GetAllPlugins() []*containerOfPlugin
- func GetPluginByFilePath(filePath string) *containerOfPlugin
- func GetPluginById(id string) *containerOfPlugin
- func LoadPlugin(path string) (plus_plugin.OnebotInterface, *plugin.Client, error)
- func Register(filePath string, plugin plus_plugin.OnebotInterface, rpcCli *rpcPlugin.Client) error
- func Start(ctx context.Context) error
- func StartListenEvent(ctx context.Context, eventCli *event.OnebotEventClient, ...) error
- type PluginStatus
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 StartListenEvent ¶
func StartListenEvent(ctx context.Context, eventCli *event.OnebotEventClient, apiCli api.OnebotApiClientInterface) error
Types ¶
type PluginStatus ¶
type PluginStatus int
const ( PluginStatusHealthy PluginStatus = iota PluginStatusUnhealthy )
Click to show internal directories.
Click to hide internal directories.