web

package
v0.0.0-...-9ab3d94 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugParty

func DebugParty() module.WebModule

Party 调试模块

Types

type WebServer

type WebServer struct {
	// contains filtered or unexported fields
}

func Init

func Init() *WebServer

Init 初始化web服务

func (*WebServer) AddModule

func (webServer *WebServer) AddModule(module ...module.WebModule)

AddModule 添加模块

func (*WebServer) GetAddr

func (webServer *WebServer) GetAddr() string

GetAddr 获取web服务地址

func (*WebServer) GetModules

func (webServer *WebServer) GetModules() []module.WebModule

GetModules 获取模块

func (*WebServer) GetSources

func (webServer *WebServer) GetSources() []map[string]string

GetSources 获取web服务需要认证的权限

func (*WebServer) InitRouter

func (webServer *WebServer) InitRouter() error

InitRouter 初始化模块路由

func (*WebServer) Run

func (webServer *WebServer) Run()

Run 启动web服务

Jump to

Keyboard shortcuts

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