protocol

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(c *gin.Context, index, typ string, db *rpcutils.DBRead)

Count 统计数量

func GetRequest

func GetRequest(c *gin.Context) (*rpcutils.ClientRequest, error)

func List

func List(c *gin.Context, index, typ string, decoder func(x *json.RawMessage) (interface{}, error), db *rpcutils.DBRead)

List 查询列表

func ParserESclient

func ParserESclient(c *gin.Context) (*querypara.Query, error)

ParserESclient 解析es的query结构体

func RequestParse

func RequestParse(c *gin.Context)

func SetError

func SetError(c *gin.Context, code int, err error)

func SetResult

func SetResult(c *gin.Context, result interface{}, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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