Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close()
- func (c *Client) DoJSONRequest(e *endpoint, uriParameters []interface{}, body interface{}, ...) (status int, err error)
- func (c *Client) GetKeysets() ([]string, error)
- func (c *Client) GetRawPoints(query *raw.Query) (*raw.NumberQueryResults, error)
- func (c *Client) GetRawTextPoints(query *raw.Query) (*raw.TextQueryResults, error)
- func (c *Client) KeysetExists(keyset string) (bool, error)
- type Configuration
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBadRequest - raised when invalid parameters are passed ErrBadRequest error = errors.New("invalid parameters") // ErrNullConfiguration - raised when a null configuration is found ErrNullConfiguration error = errors.New("configuration is null") // ErrInvalidHost - raised when a host is invalid ErrInvalidHost error = errors.New("host is invalid") // ErrInvalidPort - raised when the port is invalid ErrInvalidPort error = errors.New("port is invalid") // ErrInvalidTimeout - raised when the timeout is invalid ErrInvalidTimeout error = errors.New("timeout is invalid") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client - a mycenae client
func (*Client) DoJSONRequest ¶
func (c *Client) DoJSONRequest(e *endpoint, uriParameters []interface{}, body interface{}, resultJSON interface{}) (status int, err error)
DoJSONRequest - creates a new GET request
func (*Client) GetKeysets ¶
GetKeysets - return the list of all keysets
func (*Client) GetRawPoints ¶
GetRawPoints - return the list of raw points
func (*Client) GetRawTextPoints ¶
GetRawTextPoints - return the list of raw text points
type Configuration ¶
type Configuration struct { Host string `json:"host"` Port int `json:"port"` Secure bool `json:"secure"` Timeout funks.Duration `json:"timeout"` }
Configuration - client configurations
func (*Configuration) Validate ¶ added in v1.0.1
func (c *Configuration) Validate() error
Validate - validates the configuration parameters
Click to show internal directories.
Click to hide internal directories.