http

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

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 contains Ignite cluster connection information

func (*Client) QryCls

func (c *Client) QryCls(queryId string) (bool, string, error)

QryCls closes query resources

func (*Client) QryFetch

func (c *Client) QryFetch(queryId string) (*Response, string, error)

QryFetch gets next page for the query

func (*Client) QryFldExe

func (c *Client) QryFldExe(query string, v *url.Values) (*Response, string, error)

QryFldExe runs sql fields query over cache.

func (*Client) Version

func (c *Client) Version() (Version, string, error)

Version command shows current Ignite version.

Request Parameters | name | type | optional | description | example | |------|--------|----------|------------------------------|---------| | cmd | string | | Should be version lowercase. | |

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"`
	PageSizeStr string
}

ConnectionInfo contains Ignite cluster connection information

type FieldMetadata

type FieldMetadata struct {
	SchemaName    string `json:"schemaName"`
	TypeName      string `json:"typeName"`
	FieldName     string `json:"fieldName"`
	FieldTypeName string `json:"fieldTypeName"`
}

type Response

type Response struct {
	Items          [][]interface{} `json:"items"`
	Last           bool            `json:"last"`
	QueryID        int64           `json:"queryId"`
	FieldsMetadata []FieldMetadata `json:"fieldsMetadata"`
}

type Version

type Version string

type WrapperResponse

type WrapperResponse struct {
	SuccessStatus int      `json:"successStatus"`
	Error         string   `json:"error"`
	Response      Response `json:"response"`
	SessionToken  string   `json:"sessionToken"`
}

type WrapperResponseBinary

type WrapperResponseBinary struct {
	SuccessStatus int    `json:"successStatus"`
	Error         string `json:"error"`
	Response      bool   `json:"response"`
	SessionToken  string `json:"sessionToken"`
}

type WrapperResponseVersion

type WrapperResponseVersion struct {
	SuccessStatus int     `json:"successStatus"`
	Error         string  `json:"error"`
	Version       Version `json:"response"`
	SessionToken  string  `json:"sessionToken"`
}

Jump to

Keyboard shortcuts

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