Versions in this module Expand all Collapse all v0 v0.1.0 Dec 20, 2019 Changes in this version + const DefaultBaseURLImplementation + const DefaultBaseURLProduction + type APIBackend struct + BaseURL string + HTTPClient *http.Client + func (b *APIBackend) BuildURL(sess *session.Session, def Definition, query url.Values) (string, error) + func (b *APIBackend) Call(ctx context.Context, sess *session.Session, def Definition, query url.Values) (io.ReadCloser, error) + type APIError struct + Message string + StatusCode int + func (err *APIError) Error() string + type Backend interface + Call func(ctx context.Context, sess *session.Session, def Definition, query url.Values) (io.ReadCloser, error) + type Client struct + Backend Backend + Sess *session.Session + func NewClient(sess *session.Session) *Client + func (c *Client) CallCSV(ctx context.Context, def Definition, query url.Values) (*csv.Reader, error) + func (c *Client) CallRaw(ctx context.Context, def Definition, query url.Values) (*bytes.Buffer, error) + func (c *Client) CallXML(ctx context.Context, def Definition, query url.Values, v interface{}) error + type Definition struct + Name string + Owner string