rest

package
v0.0.0-...-396d2c0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserKey     = "user"
	PasswordKey = "password"
)
View Source
const LayoutMicroSecond = "2006-01-02 15:04:05.000000"
View Source
const LayoutMillSecond = "2006-01-02 15:04:05.000"
View Source
const LayoutNanoSecond = "2006-01-02 15:04:05.000000000"

Variables

This section is empty.

Functions

func DecodeDes

func DecodeDes(auth string) (user, password string, err error)

func EncodeDes

func EncodeDes(user, password string) (string, error)

Types

type Message

type Message struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
	Desc   string `json:"desc"`
}

type Restful

type Restful struct {
}

func (*Restful) Close

func (ctl *Restful) Close()

func (*Restful) Init

func (ctl *Restful) Init(r gin.IRouter) error

type TDEngineRestfulResp

type TDEngineRestfulResp struct {
	Status     string           `json:"status"`
	Head       []string         `json:"head"`
	ColumnMeta [][]interface{}  `json:"column_meta"`
	Data       [][]driver.Value `json:"data"`
	Rows       int              `json:"rows"`
}

Jump to

Keyboard shortcuts

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