Documentation ¶
Index ¶
- Variables
- type Party
- type WebServer
- func (ws *WebServer) AddModule(parties ...Party)
- func (ws *WebServer) AddUploadStatic(webPrefix, staticAbsPath string)
- func (ws *WebServer) AddWebStatic(staticAbsPath, webPrefix string, paths ...string)
- func (ws *WebServer) GetEngine() *iris.Application
- func (ws *WebServer) GetSources() ([]map[string]string, []map[string]string)
- func (ws *WebServer) InitRouter() error
- func (ws *WebServer) Run()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuthDriverEmpty = errors.New("认证驱动初始化失败")
Functions ¶
This section is empty.
Types ¶
type Party ¶
type Party struct { Perfix string PartyFunc func(index iris.Party) }
Party 功能模块 - perfix 模块路由路径 - partyFunc 模块
type WebServer ¶
type WebServer struct {
// contains filtered or unexported fields
}
func (*WebServer) AddUploadStatic ¶
AddUploadStatic 添加上传文件访问地址
func (*WebServer) AddWebStatic ¶
AddWebStatic 添加前端访问地址
func (*WebServer) GetEngine ¶ added in v1.1.3
func (ws *WebServer) GetEngine() *iris.Application
GetEngine 增加灵活性
func (*WebServer) GetSources ¶
GetSources 获取系统路由 - PermRoutes 权鉴路由 - NoPermRoutes 公共路由
Click to show internal directories.
Click to hide internal directories.