controller

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CronList

func CronList(ctx *gin.Context)

func DbTestPing

func DbTestPing(ctx *gin.Context)

@Summary 接管服务 @Description 数据库测试连接 @Produce json @Param body body model.DatabaseInfos true "body参数" @Success 200 {string} string "code: 200 成功" @Failure 200 {string} string "code: 401 参数错误; 500 服务器内部错误; 505 JWT认证失败; 10001 新增失败; 10002 更新失败; 10003 删除失败; 10004 查询失败; " @Router /admin/dbTestPing [post]

func InitConfig

func InitConfig(ctx *gin.Context)

@Summary 接管服务 @Description 初始化配置文件 @Produce json @Param body body model.DatabaseInfos true "body参数" @Success 200 {string} string "code: 200 成功" @Failure 200 {string} string "code: 401 参数错误; 500 服务器内部错误; 505 JWT认证失败; 10001 新增失败; 10002 更新失败; 10003 删除失败; 10004 查询失败; " @Router /admin/initConfig [post]

func Ping

func Ping(ctx *gin.Context)

@Summary 接管服务 @Description 服务连接测试 @Produce json @Success 200 {string} string "code: 200 成功" @Failure 200 {string} string "code: 401 参数错误; 500 服务器内部错误; 505 JWT认证失败; 10001 新增失败; 10002 更新失败; 10003 删除失败; 10004 查询失败; " @Router /admin/ping [get]

func ProxyServer

func ProxyServer(busiRouterName string, prot int64) gin.HandlerFunc

进行业务服务代理

func Restart

func Restart(ctx *gin.Context)

@Summary 接管服务 @Description 重启服务 @Produce json @Param body body model.DatabaseInfos true "body参数" @Success 200 {string} string "code: 200 成功" @Failure 200 {string} string "code: 401 参数错误; 500 服务器内部错误; 505 JWT认证失败; 10001 新增失败; 10002 更新失败; 10003 删除失败; 10004 查询失败; " @Router /admin/restart [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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