views

package
v0.0.0-...-b97b37b Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandlerV1

func AddHandlerV1(prefix string, h RegistrantV1)

添加 v1 版 handler

func Register

func Register(engine *gin.Engine)

注册路由

Types

type ClusterHandler

type ClusterHandler struct{}

func (*ClusterHandler) All

func (this *ClusterHandler) All(c *gin.Context)

所有集群

func (*ClusterHandler) AllName

func (this *ClusterHandler) AllName(c *gin.Context)

通过集群名称搜索集群

func (*ClusterHandler) RegisterV1

func (this *ClusterHandler) RegisterV1(group *gin.RouterGroup)

注册route

type DBOprationHandler

type DBOprationHandler struct{}

func (*DBOprationHandler) ClusterDBNames

func (this *DBOprationHandler) ClusterDBNames(c *gin.Context)

获取集群所有数据库名

func (*DBOprationHandler) RegisterV1

func (this *DBOprationHandler) RegisterV1(group *gin.RouterGroup)

注册route

type InstanceHandler

type InstanceHandler struct{}

func (*InstanceHandler) Find

func (this *InstanceHandler) Find(c *gin.Context)

func (*InstanceHandler) RegisterV1

func (this *InstanceHandler) RegisterV1(group *gin.RouterGroup)

注册route

type MysqlExecHandler

type MysqlExecHandler struct{}

func (*MysqlExecHandler) ExecSql

func (this *MysqlExecHandler) ExecSql(c *gin.Context)

执行SQL

func (*MysqlExecHandler) RegisterV1

func (this *MysqlExecHandler) RegisterV1(group *gin.RouterGroup)

注册route

type MysqlPrivsHandler

type MysqlPrivsHandler struct{}

func (*MysqlPrivsHandler) ApplyMySQLPriv

func (this *MysqlPrivsHandler) ApplyMySQLPriv(c *gin.Context)

申请MySQL权限

func (*MysqlPrivsHandler) ApplyMysqlPrivFindByUUID

func (this *MysqlPrivsHandler) ApplyMysqlPrivFindByUUID(c *gin.Context)

获取mysql工单列表

func (*MysqlPrivsHandler) ApplyMysqlPrivOrder

func (this *MysqlPrivsHandler) ApplyMysqlPrivOrder(c *gin.Context)

获取mysql工单列表

func (*MysqlPrivsHandler) ApplyMysqlPrivOrderEditByUUID

func (this *MysqlPrivsHandler) ApplyMysqlPrivOrderEditByUUID(c *gin.Context)

申请MySQL权限

func (*MysqlPrivsHandler) ApplyMysqlPrivSuccess

func (this *MysqlPrivsHandler) ApplyMysqlPrivSuccess(c *gin.Context)

申请MySQL权限

func (*MysqlPrivsHandler) FindPrivsTreeByUsername

func (this *MysqlPrivsHandler) FindPrivsTreeByUsername(c *gin.Context)

通过用户获取所有的数据库权限

func (*MysqlPrivsHandler) FindTablesByUser

func (this *MysqlPrivsHandler) FindTablesByUser(c *gin.Context)

通过用户获取所有的数据库权限

func (*MysqlPrivsHandler) RegisterV1

func (this *MysqlPrivsHandler) RegisterV1(group *gin.RouterGroup)

注册route

type RegistrantV1

type RegistrantV1 interface {
	RegisterV1(group *gin.RouterGroup)
}

type UserHandler

type UserHandler struct{}

func (*UserHandler) All

func (this *UserHandler) All(c *gin.Context)

func (*UserHandler) DeleteById

func (this *UserHandler) DeleteById(c *gin.Context)

func (*UserHandler) EditById

func (this *UserHandler) EditById(c *gin.Context)

func (*UserHandler) Find

func (this *UserHandler) Find(c *gin.Context)

func (*UserHandler) Login

func (this *UserHandler) Login(c *gin.Context)

func (*UserHandler) Logout

func (this *UserHandler) Logout(c *gin.Context)

func (*UserHandler) Register

func (this *UserHandler) Register(c *gin.Context)

func (*UserHandler) RegisterV1

func (this *UserHandler) RegisterV1(group *gin.RouterGroup)

注册route

type UtilHandler

type UtilHandler struct{}

func (*UtilHandler) DBResult

func (this *UtilHandler) DBResult(c *gin.Context)

func (*UtilHandler) Decrypt

func (this *UtilHandler) Decrypt(c *gin.Context)

解密

func (*UtilHandler) Encrypt

func (this *UtilHandler) Encrypt(c *gin.Context)

加密

func (*UtilHandler) GetBatchInsertSql

func (this *UtilHandler) GetBatchInsertSql(c *gin.Context)

func (*UtilHandler) JWTAuthTest

func (this *UtilHandler) JWTAuthTest(c *gin.Context)

测试Token

func (*UtilHandler) RegisterV1

func (this *UtilHandler) RegisterV1(group *gin.RouterGroup)

注册route

func (*UtilHandler) SqlFingerprint

func (this *UtilHandler) SqlFingerprint(c *gin.Context)

解密

func (*UtilHandler) TextToSqls

func (this *UtilHandler) TextToSqls(c *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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