controller

package
v0.0.0-...-98a29f8 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIndex

func AddIndex(c *gin.Context)

AddIndex 添加索引

func AllKeys

func AllKeys(c *gin.Context)

func BatchAddIndex

func BatchAddIndex(c *gin.Context)

BatchAddIndex 批量添加索引

func CheckExistsDB

func CheckExistsDB() gin.HandlerFunc

func DBS

func DBS(c *gin.Context)

DBS 查询数据库

func DatabaseCreate

func DatabaseCreate(c *gin.Context)

DatabaseCreate 创建数据库

func DatabaseDrop

func DatabaseDrop(c *gin.Context)

DatabaseDrop 删除数据库

func GC

func GC(c *gin.Context)

GC 释放GC

func HasNegative

func HasNegative(c *gin.Context)

func IndexTaskCount

func IndexTaskCount(c *gin.Context)

IndexTask 索引任务

func NegativeBatch

func NegativeBatch(c *gin.Context)

func NegativeKeys

func NegativeKeys(c *gin.Context)

NegaTive_Add 导入负面词

func NegativeRemove

func NegativeRemove(c *gin.Context)

func NewServices

func NewServices()

func Notice

func Notice(c *gin.Context)

Notice 通知

func Query

func Query(c *gin.Context)

Query 查询

func QueryNegative

func QueryNegative(c *gin.Context)

NegaTiveQuery 负面词查询

func RemoveIndex

func RemoveIndex(c *gin.Context)

RemoveIndex 删除索引

func ResponseErrorWithMsg

func ResponseErrorWithMsg(c *gin.Context, message string)

ResponseErrorWithMsg 返回错误

func ResponseSuccess

func ResponseSuccess(c *gin.Context)

ResponseSuccess 返回成功

func ResponseSuccessWithData

func ResponseSuccessWithData(c *gin.Context, data interface{})

ResponseSuccessWithData 携带数据成功返回

func Status

func Status(c *gin.Context)

Status 获取服务器状态

func Welcome

func Welcome(c *gin.Context)

func WordCut

func WordCut(c *gin.Context)

WordCut 分词

Types

type ResponseData

type ResponseData struct {
	State   bool        `json:"state"`
	Message string      `json:"message,omitempty"`
	Data    interface{} `json:"data,omitempty"`
}

type Services

type Services struct {
	Base     *service2.Base
	Notice   *service2.Notice
	Index    *service2.Index
	Negative *service2.Negative
	Database *service2.Database
	Word     *service2.Word
}

Jump to

Keyboard shortcuts

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