Versions in this module Expand all Collapse all v3 v3.0.0 Dec 29, 2020 Changes in this version + func HandleHTTPError(resp *http.Response) error + func NewHTTPClient(opts ...ClientOption) *http.Client + type Client struct + func NewClient(opts ...ClientOption) *Client + func NewClientFromHTTP(httpClient *http.Client) *Client + func (c Client) GraphQL(hostname string, query string, variables map[string]interface{}, ...) error + func (c Client) HasMinimumScopes(hostname string) error + func (c Client) REST(hostname string, method string, p string, body io.Reader, data interface{}) error + type ClientOption = func(http.RoundTripper) http.RoundTripper + func AddHeader(name, value string) ClientOption + func AddHeaderFunc(name string, getValue func(*http.Request) (string, error)) ClientOption + func ReplaceTripper(tr http.RoundTripper) ClientOption + func VerboseLog(out io.Writer, logTraffic bool, colorize bool) ClientOption + type GraphQLError struct + Message string + Path []string + Type string + type GraphQLErrorResponse struct + Errors []GraphQLError + func (gr GraphQLErrorResponse) Error() string + type HTTPError struct + Message string + OAuthScopes string + RequestURL *url.URL + StatusCode int + func (err HTTPError) Error() string + type MissingScopesError struct + MissingScopes []string + func (e MissingScopesError) Error() string Other modules containing this package github.com/abdfnx/secman/v5