Documentation
¶
Index ¶
- type BeforeFunc
- type Client
- type Options
- type Request
- type Response
- func (c *Response) Data() interface{}
- func (c *Response) Decode(out interface{}) (err error)
- func (c *Response) Errors() gqlerrors.FormattedErrors
- func (c *Response) FirstError() *gqlerrors.FormattedError
- func (c *Response) HTTPRequest() *http.Request
- func (c *Response) HTTPResponse() *http.Response
- func (c *Response) HasErrors() bool
- func (c *Response) RawResult() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeforeFunc ¶
BeforeFunc modifies the request before it is sent
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client a graphql client
type Options ¶
type Options struct {
URL string
Before []BeforeFunc
Insecure bool
RequestTimeout time.Duration
HTTPClient *http.Client
}
Options client options
type Request ¶
Request interface to a request object so you can bring your own
func (*Request) GetOperationName ¶
GetOperationName gets the operation name
func (*Request) GetVariables ¶
GetVariables gets the variables
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response response object
func (*Response) Errors ¶
func (c *Response) Errors() gqlerrors.FormattedErrors
Errors returns the errors
func (*Response) FirstError ¶
func (c *Response) FirstError() *gqlerrors.FormattedError
FirstError returns the first error
func (*Response) HTTPRequest ¶
HTTPRequest returns the http request
func (*Response) HTTPResponse ¶
HTTPResponse returns the http response
Click to show internal directories.
Click to hide internal directories.