Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
ConnectionInfo *ConnectionInfo
}
Client implements Ignite HTTP REST API
func (*Client) QryCls ¶
QryCls closes query resources See https://apacheignite.readme.io/docs/rest-api#section-sql-query-close for more details
func (*Client) QryFetch ¶
QryFetch gets next page for the query See https://apacheignite.readme.io/docs/rest-api#section-sql-query-fetch for more details
func (*Client) QryFldExe ¶
QryFldExe runs sql fields query over cache. See https://apacheignite.readme.io/docs/rest-api#section-sql-fields-query-execute for more details
type ConnectionInfo ¶
type ConnectionInfo struct {
Servers []string `json:"servers"`
Username string `json:"username"`
Password string `json:"password"`
Cache string `json:"cache"`
PageSize int64 `json:"pageSize"`
}
ConnectionInfo contains Ignite cluster connection information user should provide when open connection
type FieldMetadata ¶
type FieldMetadata struct {
SchemaName string `json:"schemaName"`
TypeName string `json:"typeName"`
FieldName string `json:"fieldName"`
FieldTypeName string `json:"fieldTypeName"`
}
FieldMetadata is column list See https://apacheignite.readme.io/docs/rest-api#section-sql-fields-query-execute for more details See https://apacheignite.readme.io/docs/rest-api#section-sql-query-fetch for more details
type Response ¶
type Response struct {
Items [][]interface{} `json:"items"`
Last bool `json:"last"`
QueryID int64 `json:"queryId"`
FieldsMetadata []FieldMetadata `json:"fieldsMetadata"`
}
Response is body of response for `qryfldexe`, `qryfetch` commands See https://apacheignite.readme.io/docs/rest-api#section-sql-fields-query-execute for more details See https://apacheignite.readme.io/docs/rest-api#section-sql-query-fetch for more details
type WrapperResponse ¶
type WrapperResponse struct {
SuccessStatus int `json:"successStatus"`
Error string `json:"error"`
Response Response `json:"response"`
SessionToken string `json:"sessionToken"`
}
WrapperResponse is response for `qryfldexe`, `qryfetch` commands See https://apacheignite.readme.io/docs/rest-api#section-sql-fields-query-execute for more details See https://apacheignite.readme.io/docs/rest-api#section-sql-query-fetch for more details
type WrapperResponseBinary ¶
type WrapperResponseBinary struct {
SuccessStatus int `json:"successStatus"`
Error string `json:"error"`
Response bool `json:"response"`
SessionToken string `json:"sessionToken"`
}
WrapperResponseBinary is response for `qrycls` commands See https://apacheignite.readme.io/docs/rest-api#section-sql-query-close for more details
type WrapperResponseVersion ¶
type WrapperResponseVersion struct {
SuccessStatus int `json:"successStatus"`
Error string `json:"error"`
Version Version `json:"response"`
SessionToken string `json:"sessionToken"`
}
WrapperResponseVersion is response for `version` command See https://apacheignite.readme.io/docs/rest-api#section-version for more details