demo

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	frame.Module
}

func New

func New() *Module

func (*Module) Components

func (this *Module) Components() []frame.ComponentInterface

组件

func (*Module) Crontabs

func (this *Module) Crontabs() []frame.CrontabInterface

定时任务

func (*Module) Enable added in v1.0.6

func (this *Module) Enable() bool

模块是否有效

func (*Module) Events

func (this *Module) Events() []frame.EventInterface

事件列表(自动寻找对应钩子)

func (*Module) Hooks

func (this *Module) Hooks() []frame.HookInterface

钩子列表(注册后的事件才能使用)

func (*Module) Init

func (this *Module) Init(eg *frame.WebEngine)

模块初始化,此处可放置路由

func (*Module) Install

func (this *Module) Install()

执行安装操作

func (*Module) ModuleName

func (this *Module) ModuleName() string

模块名称

Directories

Path Synopsis
components
controller
api

Jump to

Keyboard shortcuts

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