Documentation ¶
Index ¶
- Constants
- type QueryController
- type Result
- type Taos
- type WSAction
- type WSConnectReq
- type WSConnectResp
- type WSErrorResp
- type WSFetchBlockReq
- type WSFetchReq
- type WSFetchResp
- type WSFreeResultReq
- type WSQueryReq
- type WSQueryResult
- type WSTMQErrorResp
- type WSVersionResp
- type WSWriteMetaResp
- type WSWriteRawBlockResp
- type WSWriteRawBlockWithFieldsResp
Constants ¶
View Source
const ( WSConnect = "conn" WSQuery = "query" WSFetch = "fetch" WSFetchBlock = "fetch_block" WSFreeResult = "free_result" WSWriteRaw = "write_raw" WSWriteRawBlock = "write_raw_block" WSWriteRawBlockWithFields = "write_raw_block_with_fields" )
View Source
const ( TMQRawMessage = 3 RawBlockMessage = 4 RawBlockMessageWithFields = 5 )
View Source
const TaosSessionKey = "taos"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryController ¶
type QueryController struct {
// contains filtered or unexported fields
}
func NewQueryController ¶
func NewQueryController() *QueryController
func (*QueryController) Init ¶
func (s *QueryController) Init(ctl gin.IRouter)
type Result ¶
type Result struct { TaosResult unsafe.Pointer FieldsCount int Header *wrapper.RowsHeader Lengths []int Size int Block unsafe.Pointer sync.Mutex // contains filtered or unexported fields }
func (*Result) FreeResult ¶
type WSAction ¶
type WSAction struct { Action string `json:"action"` Args json.RawMessage `json:"args"` }
type WSConnectReq ¶
type WSConnectResp ¶
type WSErrorResp ¶
type WSFetchBlockReq ¶
type WSFetchReq ¶
type WSFetchResp ¶
type WSFreeResultReq ¶
type WSQueryReq ¶
type WSQueryResult ¶
type WSQueryResult struct { Code int `json:"code"` Message string `json:"message"` Action string `json:"action"` ReqID uint64 `json:"req_id"` Timing int64 `json:"timing"` ID uint64 `json:"id"` IsUpdate bool `json:"is_update"` AffectedRows int `json:"affected_rows"` FieldsCount int `json:"fields_count"` FieldsNames []string `json:"fields_names"` FieldsTypes jsontype.JsonUint8 `json:"fields_types"` FieldsLengths []int64 `json:"fields_lengths"` Precision int `json:"precision"` }
type WSTMQErrorResp ¶
type WSVersionResp ¶
type WSWriteMetaResp ¶
type WSWriteRawBlockResp ¶
Click to show internal directories.
Click to hide internal directories.