Versions in this module Expand all Collapse all v0 v0.0.9 Jan 31, 2024 v0.0.8 Jul 31, 2023 Changes in this version + const HealthEndpoint + const NativeQueryEndpoint + const PropertiesEndpoint + const SQLQueryEndpoint + const SelfDiscoveredEndpoint + const StatusEndpoint + type Client struct + func NewClient(baseURL string, options ...ClientOption) (*Client, error) + func (c *Client) Close() error + func (c *Client) Common() *CommonService + func (c *Client) Do(r *retryablehttp.Request, result interface{}) (*Response, error) + func (c *Client) ExecuteRequest(method, path string, opt, result interface{}) (*Response, error) + func (c *Client) NewRequest(method, path string, opt interface{}) (*retryablehttp.Request, error) + func (c *Client) Query() *QueryService + type ClientOption func(*clientOptions) + func WithBasicAuth(username, password string) ClientOption + func WithCustomBackoff(backoff retryablehttp.Backoff) ClientOption + func WithCustomErrorHandler(h retryablehttp.ErrorHandler) ClientOption + func WithCustomRetry(retry retryablehttp.CheckRetry) ClientOption + func WithHTTPClient(httpClient *http.Client) ClientOption + func WithRetryMax(retryMax int) ClientOption + func WithRetryWaitMax(retryWaitMax time.Duration) ClientOption + func WithRetryWaitMin(retryWaitMin time.Duration) ClientOption + func WithSkipTLSVerify() ClientOption + type CommonService struct + func (c *CommonService) Health() (*Health, *Response, error) + func (c *CommonService) Properties() (*Properties, *Response, error) + func (c *CommonService) SelfDiscovered() (*SelfDiscovered, *Response, error) + func (c *CommonService) Status() (*Status, *Response, error) + type Health bool + type Properties map[string]string + type QueryService struct + func (q *QueryService) Execute(qry builder.Query, result interface{}, headers ...http.Header) (*Response, error) + func (q *QueryService) Load(data []byte) (builder.Query, error) + type Response struct + func (r *Response) ExtractError() error + type SelfDiscovered struct + SelfDiscovered bool + type Status struct + Memory struct{ ... } + Modules []struct{ ... } + Version string