Documentation ¶
Index ¶
- Variables
- type CustomAspect
- type WebServer
- func (ws *WebServer) AddUploadStatic(staticAbsPath, webPrefix string)
- func (ws *WebServer) AddWebStatic(staticAbsPath, webPrefix string, paths ...string)
- func (ws *WebServer) GetEngine() *gin.Engine
- func (ws *WebServer) GetRouterGroup(relativePath string) *gin.RouterGroup
- 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 CustomAspect ¶
type CustomAspect struct {
CustomValue int
}
func (*CustomAspect) GetStats ¶
func (a *CustomAspect) GetStats() interface{}
func (*CustomAspect) InRoot ¶
func (a *CustomAspect) InRoot() bool
func (*CustomAspect) Name ¶
func (a *CustomAspect) Name() string
type WebServer ¶
type WebServer struct {
// contains filtered or unexported fields
}
WebServer web服务 - app gin.Engine - idleConnsClosed - addr 服务访问地址 - timeFormat 时间格式 - staticPrefix 静态文件访问地址前缀
func (*WebServer) AddUploadStatic ¶
AddUploadStatic 添加上传文件访问地址
func (*WebServer) AddWebStatic ¶
AddWebStatic 添加前端访问地址
func (*WebServer) GetRouterGroup ¶
func (ws *WebServer) GetRouterGroup(relativePath string) *gin.RouterGroup
func (*WebServer) GetSources ¶
GetSources 获取系统路由 - PermRoutes 权鉴路由 - NoPermRoutes 公共路由
func (*WebServer) GetTestClient ¶
GetTestClient 获取测试验证客户端
Click to show internal directories.
Click to hide internal directories.