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("auth driver initialize fail")
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.