web

package
v0.0.0-...-833a7b1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = func() module.Module {
	roleModule := new(ModuleWeb)
	return roleModule
}

Functions

This section is empty.

Types

type ModuleWeb

type ModuleWeb struct {
	basemodule.BaseModule

	Router     *gin.Engine
	WebModules []WebHandlers
	// contains filtered or unexported fields
}

func (*ModuleWeb) GetType

func (m *ModuleWeb) GetType() string

func (*ModuleWeb) OnDestroy

func (m *ModuleWeb) OnDestroy()

func (*ModuleWeb) OnInit

func (m *ModuleWeb) OnInit(app module.App, settings *conf.ModuleSettings)

func (*ModuleWeb) Run

func (m *ModuleWeb) Run(closeSig chan bool)

func (*ModuleWeb) Version

func (m *ModuleWeb) Version() string

type WebHandlers

type WebHandlers interface {
	Init(router *gin.Engine)
	SetEngine(sqlEngine *xorm.Engine)
}

Jump to

Keyboard shortcuts

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