Documentation ¶
Index ¶
- func DebugParty() module.WebModule
- type WebServer
- func (webServer *WebServer) AddModule(module ...module.WebModule)
- func (webServer *WebServer) AddStatic(requestPath string, fsOrDir interface{}, opts ...iris.DirOptions)
- func (webServer *WebServer) AddUploadStatic()
- func (webServer *WebServer) AddWebStatic(requestPath string)
- func (webServer *WebServer) GetAddr() string
- func (webServer *WebServer) GetModules() []module.WebModule
- func (webServer *WebServer) GetSources() []map[string]string
- func (webServer *WebServer) GetStaticPath() string
- func (webServer *WebServer) GetTestAuth(t *testing.T) *tests.Client
- func (webServer *WebServer) GetTestLogin(t *testing.T, url string, res tests.Responses, datas ...map[string]interface{}) *tests.Client
- func (webServer *WebServer) GetWebPath() string
- func (webServer *WebServer) InitRouter() error
- func (webServer *WebServer) Run()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WebServer ¶
type WebServer struct {
// contains filtered or unexported fields
}
WebServer web 服务 - app iris application - modules 服务的模块 - idleConnsClosed - addr 服务访问地址 - timeFormat 时间格式 - globalMiddlewares 全局中间件 - wg sync.WaitGroup - staticPrefix 静态文件访问地址前缀 - staticPath 静态文件地址 - webPath 前端文件地址
func (*WebServer) AddStatic ¶
func (webServer *WebServer) AddStatic(requestPath string, fsOrDir interface{}, opts ...iris.DirOptions)
AddStatic 添加静态文件
func (*WebServer) AddUploadStatic ¶
func (webServer *WebServer) AddUploadStatic()
AddUploadStatic 添加上传文件访问地址
func (*WebServer) AddWebStatic ¶
AddWebStatic 添加前端访问地址
func (*WebServer) GetModules ¶
GetModules 获取模块
func (*WebServer) GetSources ¶
GetSources 获取web服务需要认证的权限
func (*WebServer) GetStaticPath ¶
GetStaticPath 获取静态路径
func (*WebServer) GetTestAuth ¶
GetTestAuth 获取测试验证客户端
Click to show internal directories.
Click to hide internal directories.