service

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminFileServer http.Handler = http.FileServer(data.AssetFS())

AdminFileServer 数据管理平台

View Source
var AppFileServer http.Handler = http.FileServer(http.Dir(filepath.Join(config.Conf.Root, "ui")))

AppFileServer 应用静态文件

View Source
var Guards = map[string]gin.HandlerFunc{
	"bearer-jwt":   bearerJWT,
	"cross-domain": crossDomain,
	"table-guard":  table.Guard,
}

Guards 服务中间件

View Source
var Middlewares = []gin.HandlerFunc{

	BinStatic,
}

Middlewares 服务中间件

Functions

func BinStatic

func BinStatic(c *gin.Context)

BinStatic 静态文件服务

func Start

func Start() error

Start 启动服务

func StartWithouttSession

func StartWithouttSession()

StartWithouttSession 启动服务

func Stop

func Stop(onComplete func())

Stop 关闭服务

func StopWithouttSession

func StopWithouttSession(onComplete func())

StopWithouttSession 关闭服务

func Watch

func Watch(cfg config.Config)

Watch 监听应用目录文件变更

func WatchAPI

func WatchAPI(root string, prefix string)

WatchAPI 监听业务接口更新

func WatchChart

func WatchChart(root string, prefix string)

WatchChart 监听分析图表更新

func WatchEngine

func WatchEngine(root string)

WatchEngine 监听监听引擎内建数据变更

func WatchFlow

func WatchFlow(root string, prefix string)

WatchFlow 监听业务逻辑变更

func WatchGlobal

func WatchGlobal(root string)

WatchGlobal 监听通用程序更新

func WatchModel

func WatchModel(root string, prefix string)

WatchModel 监听业务接口更新

func WatchPage

func WatchPage(root string, prefix string)

WatchPage 监听页面更新

func WatchPlugin

func WatchPlugin(root string)

WatchPlugin 监听业务插件变更

func WatchTable

func WatchTable(root string, prefix string)

WatchTable 监听数据表格更新

func WatchWorkFlow

func WatchWorkFlow(root string, prefix string)

WatchWorkFlow 监听工作流更新

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL