Documentation ¶
Index ¶
- type Client
- func (c *Client) AddKey(acl, indexes []string, validity int, maxQueriesPerIPPerHour int, ...) (interface{}, error)
- func (c *Client) AddKeyWithParam(params interface{}) (interface{}, error)
- func (c *Client) CopyIndex(source string, destination string) (interface{}, error)
- func (c *Client) CustomBatch(queries interface{}) (interface{}, error)
- func (c *Client) DeleteKey(key string) (interface{}, error)
- func (c *Client) EncodeParams(body interface{}) string
- func (c *Client) GenerateSecuredApiKey(apiKey string, public interface{}, userToken ...string) (string, error)
- func (c *Client) GetKey(key string) (interface{}, error)
- func (c *Client) GetLogs(offset, length int, logType string) (interface{}, error)
- func (c *Client) InitIndex(indexName string) *Index
- func (c *Client) ListIndexes() (interface{}, error)
- func (c *Client) ListKeys() (interface{}, error)
- func (c *Client) MoveIndex(source string, destination string) (interface{}, error)
- func (c *Client) MultipleQueries(queries []interface{}, optionals ...string) (interface{}, error)
- func (c *Client) SetExtraHeader(key string, value string)
- func (c *Client) SetHttpClient(cl *http.Client)
- func (c *Client) SetTimeout(connectTimeout int, readTimeout int)
- func (c *Client) UpdateKey(key string, acl, indexes []string, validity int, maxQueriesPerIPPerHour int, ...) (interface{}, error)
- func (c *Client) UpdateKeyWithParam(key string, params interface{}) (interface{}, error)
- type Index
- func (i *Index) AddKey(acl []string, validity int, maxQueriesPerIPPerHour int, maxHitsPerQuery int) (interface{}, error)
- func (i *Index) AddKeyWithParam(params interface{}) (interface{}, error)
- func (i *Index) AddObject(object interface{}) (interface{}, error)
- func (i *Index) AddObjects(objects interface{}) (interface{}, error)
- func (i *Index) Batch(objects interface{}, actions []string) (interface{}, error)
- func (i *Index) Browse(page, hitsPerPage int) (interface{}, error)
- func (i *Index) BrowseAll(params interface{}) (*IndexIterator, error)
- func (i *Index) BrowseFrom(params interface{}, cursor string) (interface{}, error)
- func (i *Index) Clear() (interface{}, error)
- func (i *Index) Copy(name string) (interface{}, error)
- func (i *Index) CustomBatch(queries interface{}) (interface{}, error)
- func (i *Index) Delete() (interface{}, error)
- func (i *Index) DeleteByQuery(query string, params map[string]interface{}) (interface{}, error)
- func (i *Index) DeleteKey(key string) (interface{}, error)
- func (i *Index) DeleteObject(objectID string) (interface{}, error)
- func (i *Index) DeleteObjects(objectIDs []string) (interface{}, error)
- func (i *Index) GetKey(key string) (interface{}, error)
- func (i *Index) GetObject(objectID string, attribute ...string) (interface{}, error)
- func (i *Index) GetObjects(objectIDs ...string) (interface{}, error)
- func (i *Index) GetSettings() (interface{}, error)
- func (i *Index) ListKeys() (interface{}, error)
- func (i *Index) Move(name string) (interface{}, error)
- func (i *Index) PartialUpdateObject(object interface{}) (interface{}, error)
- func (i *Index) PartialUpdateObjects(objects interface{}) (interface{}, error)
- func (i *Index) Search(query string, params interface{}) (interface{}, error)
- func (i *Index) SetSettings(settings interface{}) (interface{}, error)
- func (i *Index) UpdateKey(key string, acl []string, validity int, maxQueriesPerIPPerHour int, ...) (interface{}, error)
- func (i *Index) UpdateKeyWithParam(key string, params interface{}) (interface{}, error)
- func (i *Index) UpdateObject(object interface{}) (interface{}, error)
- func (i *Index) UpdateObjects(objects interface{}) (interface{}, error)
- func (i *Index) WaitTask(task interface{}) (interface{}, error)
- func (i *Index) WaitTaskWithInit(taskID float64, timeToWait float64) (interface{}, error)
- type IndexIterator
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithHosts ¶
func (*Client) AddKeyWithParam ¶
func (*Client) CustomBatch ¶
func (*Client) EncodeParams ¶
func (*Client) GenerateSecuredApiKey ¶
func (*Client) ListIndexes ¶
func (*Client) MultipleQueries ¶
func (*Client) SetExtraHeader ¶
func (*Client) SetHttpClient ¶
func (*Client) SetTimeout ¶
func (*Client) UpdateKeyWithParam ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) AddKeyWithParam ¶
func (*Index) AddObjects ¶
func (*Index) BrowseAll ¶
func (i *Index) BrowseAll(params interface{}) (*IndexIterator, error)
func (*Index) BrowseFrom ¶
func (*Index) CustomBatch ¶
func (*Index) DeleteByQuery ¶
func (*Index) DeleteObject ¶
func (*Index) DeleteObjects ¶
func (*Index) GetObjects ¶
func (*Index) GetSettings ¶
func (*Index) PartialUpdateObject ¶
func (*Index) PartialUpdateObjects ¶
func (*Index) SetSettings ¶
func (*Index) UpdateKeyWithParam ¶
func (*Index) UpdateObject ¶
func (*Index) UpdateObjects ¶
type IndexIterator ¶
type IndexIterator struct {
// contains filtered or unexported fields
}
func (*IndexIterator) GetCursor ¶
func (it *IndexIterator) GetCursor() (string, bool)
func (*IndexIterator) Next ¶
func (it *IndexIterator) Next() (interface{}, error)
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func NewTransportWithHosts ¶
func (*Transport) EncodeParams ¶
Click to show internal directories.
Click to hide internal directories.