Documentation ¶
Index ¶
- Variables
- type WebServer
- func (ws *WebServer) AddUploadStatic(webPrefix, staticAbsPath 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) InitRouter() error
- func (ws *WebServer) NoRoute()
- func (ws *WebServer) Run()
- type WebStatic
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuthDriverEmpty = errors.New("auth driver initialize fail")
Functions ¶
This section is empty.
Types ¶
type WebServer ¶
type WebServer struct {
// contains filtered or unexported fields
}
WebServer - 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
Click to show internal directories.
Click to hide internal directories.