Documentation ¶
Index ¶
- Variables
- type Party
- type WebServer
- func (ws *WebServer) AddModule(parties ...Party)
- func (ws *WebServer) AddUploadStatic()
- func (ws *WebServer) AddWebStatic()
- func (ws *WebServer) GetSources() ([]map[string]string, []map[string]string)
- func (ws *WebServer) GetTestClient(t *testing.T) *httptest.Client
- func (ws *WebServer) GetTestLogin(t *testing.T, url string, res httptest.Responses, datas ...interface{}) *httptest.Client
- 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 ¶
func (ws *WebServer) AddUploadStatic()
AddUploadStatic 添加上传文件访问地址
func (*WebServer) GetSources ¶
GetSources 获取系统路由 - PermRoutes 权鉴路由 - NoPermRoutes 公共路由
func (*WebServer) GetTestClient ¶
GetTestClient 获取测试验证客户端
Click to show internal directories.
Click to hide internal directories.