Documentation ¶
Index ¶
- type BearerTokenProvider
- type Client
- func (c *Client) EnableDebugLog()
- func (c *Client) Run(request Request, response interface{}) error
- func (c *Client) RunWithContext(ctx context.Context, request Request, response interface{}) (rerr error)
- func (c *Client) SetDebug(b bool)
- func (c *Client) SetTokenProvider(tokenProvider BearerTokenProvider)
- type File
- type Header
- type JsonRequest
- type PostProcessor
- type Request
- type Request0
- type RequestError
- type RequestWithFiles
- type StandardizedErrors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BearerTokenProvider ¶
type BearerTokenProvider interface {
BearerToken() string
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewWithOpts ¶
func (*Client) EnableDebugLog ¶
func (c *Client) EnableDebugLog()
EnableDebugLog turns on debug logging
func (*Client) RunWithContext ¶
func (*Client) SetTokenProvider ¶
func (c *Client) SetTokenProvider(tokenProvider BearerTokenProvider)
type JsonRequest ¶
type PostProcessor ¶
type PostProcessor interface {
PostProcess() error
}
type RequestError ¶
type RequestError struct { Request Request // contains filtered or unexported fields }
func NewRequestError ¶
func NewRequestError(err error, req Request) *RequestError
func (*RequestError) Error ¶
func (e *RequestError) Error() string
func (*RequestError) Unwrap ¶
func (e *RequestError) Unwrap() error
type RequestWithFiles ¶
type StandardizedErrors ¶
StandardizedErrors works around API's that don't follow the graphql standard It looks redundant because it needs to address two different API responses. https://activestatef.atlassian.net/browse/PB-4291
func (StandardizedErrors) HasErrors ¶
func (e StandardizedErrors) HasErrors() bool
func (StandardizedErrors) Values ¶
func (e StandardizedErrors) Values() []string
Values tells us all the relevant error messages returned. We don't include e.Error because it's an unhelpful generic error code redundant with the message.
Click to show internal directories.
Click to hide internal directories.