Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func NewHttpClient ¶
func NewHttpClient(url string, opts ...HttpClientOpts) HttpClient
NewHttpClient creates a new HttpClient for graphqlclientgen clients
type HttpClientOpts ¶
type HttpClientOpts func(*HttpClient)
func WithHttpClient ¶
func WithHttpClient(c *http.Client) HttpClientOpts
WithHttpClient sets a custom http.Client for HttpClient
type Response ¶
type Response struct { Data json.RawMessage `json:"data"` Errors []Error `json:"errors"` }
Click to show internal directories.
Click to hide internal directories.