xplug

package
v0.0.0-...-fc24136 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XPlug

type XPlug struct {

	//插件唯一标识id
	Id string
	//插件名称
	Name string

	//在上下文中排位
	Index int

	//插件信息
	Info XPlugInfo
	//插件上下文
	XContent XPlugContent
}

type XPlugContent

type XPlugContent struct {

	//插件hook周期
	XHooks xhook.XPlugHook
	//插件生命周期
	XPlugLifeCycle XPlugLifeCycle
}

type XPlugInfo

type XPlugInfo struct {
	//插件名称
	Name string
	//插件作者
	Auther string
	//插件版本号
	Version float64
	//插件介绍
	Detail string
	//插件路径
	Path string
	//插件是否被禁用
	Disable bool
}

插件的相关信息

type XPlugLifeCycle

type XPlugLifeCycle struct {

	//注册
	Enroll plugin.Symbol

	//启动
	Start plugin.Symbol

	//挂载
	Mount plugin.Symbol

	//注销
	UnLoad plugin.Symbol

	//停止
	Stop plugin.Symbol
}

插件的生命周期函数定义

Jump to

Keyboard shortcuts

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