module

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddModule

func AddModule(ms Modules, m Module)

func RmModule

func RmModule(ms Modules, m Module)

Types

type M

type M interface {
	Name() string
	Hooks(s interface{})
	Enable()
	Disable()
	Extra() map[string]interface{}
}

M 插件必须实现的接口

type Module

type Module struct {
	Name   string
	Status bool
}

Module 包含所注册模块的全部信息

func (*Module) Disable

func (m *Module) Disable()

func (*Module) Enable

func (m *Module) Enable()

type Modules

type Modules map[string]Module

func CreateModules

func CreateModules() Modules

Jump to

Keyboard shortcuts

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