Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultOptions are the default set of ClientOptions for a Client DefaultOptions = &ClientOptions{ HTTP: http.DefaultClient, } )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Endpoint string Options *ClientOptions }
Client is a client aimed at a specific GraphQL endpoint
func NewClient ¶
func NewClient(endpoint string, options *ClientOptions) *Client
NewClient returns a new Client for making GraphQL requests
type ClientOptions ¶
ClientOptions are options that can be set for a Client
type Error ¶
type Error struct {
Message string `json:"message"`
}
Error is an individual GraphQL error
Click to show internal directories.
Click to hide internal directories.