tool

package
v0.0.0-...-66cf1cd Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package tool @program: gin-template @author: [lliuhuan](https://github.com/lliuhuan) @create: 2024-07-23 16:48

Package tool @program: gin-template @author: [lliuhuan](https://github.com/lliuhuan) @create: 2024-07-05 17:22

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {

	// HashIdsEncode HashIds 加密
	// @Tags API.tool
	// @Router /api/v1/tool/hashids/encode/{id} [get]
	HashIdsEncode() core.HandlerFunc

	// HashIdsDecode HashIds 解密
	// @Tags API.tool
	// @Router /api/v1/tool/hashids/decode/{id} [get]
	HashIdsDecode() core.HandlerFunc

	// SearchCache 查询缓存
	// @Tags API.tool
	// @Router /api/v1/tool/cache/search [post]
	SearchCache() core.HandlerFunc

	// ClearCache 清空缓存
	// @Tags API.tool
	// @Router /api/v1/tool/cache/clear [patch]
	ClearCache() core.HandlerFunc

	// Dbs 查询 DB
	// @Tags API.tool
	// @Router /api/v1/tool/data/dbs [get]
	Dbs() core.HandlerFunc

	// Tables 查询 Table
	// @Tags API.tool
	// @Router /api/v1/tool/data/tables [post]
	Tables() core.HandlerFunc

	// SearchMySQL 执行 SQL 语句
	// @Tags API.tool
	// @Router /api/v1/tool/data/mysql [post]
	SearchMySQL() core.HandlerFunc

	// ProjectInfo 项目基础信息
	// @Tags API.tool
	// @Router /api/v1/tool/project/info [get]
	ProjectInfo() core.HandlerFunc

	// Logs 查询日志
	// @Tags API.tool
	// @Router /api/v1/tool/logs [get]
	Logs() core.HandlerFunc
	// contains filtered or unexported methods
}

func New

func New(logger *zap.Logger, db database.Repo, cache redis.Repo) Handler

Jump to

Keyboard shortcuts

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