Documentation
¶
Index ¶
- Variables
- func BinStatic(c *gin.Context)
- func SetupStatic() error
- func Start() error
- func StartWithouttSession()
- func Stop(onComplete func())
- func StopWatch()
- func StopWithContext(ctx context.Context, onComplete func())
- func StopWithouttSession(onComplete func())
- func Watch(cfg config.Config) (err error)
- type Dir
Constants ¶
This section is empty.
Variables ¶
View Source
var AdminRoot = ""
AdminRoot cache
View Source
var AdminRootLen = 0
AdminRootLen cache
View Source
var AppFileServer http.Handler
AppFileServer static file server
View Source
var Guards = map[string]gin.HandlerFunc{ "bearer-jwt": guardBearerJWT, "cross-origin": guardCrossOrigin, "table-guard": table_v0.Guard, "widget-table": table.Guard, "widget-form": form.Guard, "widget-chart": chart.Guard, }
Guards middlewares
View Source
var Middlewares = []gin.HandlerFunc{ BinStatic, }
Middlewares 服务中间件
View Source
var XGenFileServerV0 http.Handler = http.FileServer(data.XgenV0())
XGenFileServerV0 XGen v0.9
View Source
var XGenFileServerV1 http.Handler = http.FileServer(data.XgenV1())
XGenFileServerV1 XGen v1.0
Functions ¶
func StopWithContext ¶ added in v0.10.1
StopWithContext stop with timeout
Types ¶
Click to show internal directories.
Click to hide internal directories.