Documentation ¶
Index ¶
- Constants
- Variables
- func BadRequestResponse(c *gin.Context, code int)
- func BadRequestResponseWithMsg(c *gin.Context, code int, msg string)
- func CheckAuth(c *gin.Context)
- func CommonErrorResponse(c *gin.Context, msg string)
- func DecodeDes(auth string) (user, password string, err error)
- func DoQuery(c *gin.Context, db string, timeFunc ctools.FormatTimeFunc, reqID int64)
- func EncodeDes(user, password string) (string, error)
- func ForbiddenResponse(c *gin.Context, msg string)
- func TaosErrorResponse(c *gin.Context, code int, msg string)
- func UnAuthResponse(c *gin.Context, code int)
- type Message
- type MessageWithTiming
- type Restful
- type TDEngineRestfulResp
- type TDEngineRestfulRespDoc
Constants ¶
View Source
const ( UserKey = "user" PasswordKey = "password" )
View Source
const MAXSQLLength = 1024 * 1024 * 1
View Source
const StartTimeKey = "st"
Variables ¶
View Source
var ( ExecHeader = []byte(`{"code":0,"column_meta":[["affected_rows","INT",4]],"data":[[`) ExecEnd = []byte(`]],"rows":1}`) ExecEndWithTiming = []byte(`]],"rows":1,"timing":`) Query2 = []byte(`{"code":0,"column_meta":[`) Query3 = []byte(`],"data":[`) Query4 = []byte(`],"rows":`) Timing = []byte(`,"timing":`) )
Functions ¶
func BadRequestResponse ¶
func CommonErrorResponse ¶
func ForbiddenResponse ¶
func UnAuthResponse ¶
Types ¶
type MessageWithTiming ¶
type TDEngineRestfulResp ¶
type TDEngineRestfulRespDoc ¶
Click to show internal directories.
Click to hide internal directories.