serve

package
v0.0.0-...-08474b0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugParty

func DebugParty() module.WebModule

Party 调试模块

func Start

func Start()

Start 初始化web服务

Types

type WebServer

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

WebServer 服务器

func (*WebServer) AddModule

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

AddModule 添加模块

func (*WebServer) AddSwagger

func (webServer *WebServer) AddSwagger()

func (*WebServer) AddTest

func (webServer *WebServer) AddTest()

AddTest 添加测试文件访问

func (*WebServer) AddUpload

func (webServer *WebServer) AddUpload()

AddUpload 添加上传文件访问

func (*WebServer) AddWebUi

func (webServer *WebServer) AddWebUi()

AddWebUi 添加前端页面访问

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) GetTestAuth

func (webServer *WebServer) GetTestAuth(t *testing.T) *tests.Client

GetTestAuth 获取测试验证客户端

func (*WebServer) InitRouter

func (webServer *WebServer) InitRouter() error

InitRouter 初始化模块路由

func (*WebServer) InjectModule

func (webServer *WebServer) InjectModule()

Init 加载模块

func (*WebServer) Start

func (webServer *WebServer) Start()

Init 启动web服务

Jump to

Keyboard shortcuts

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