Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.1.2969
type Client struct {
Endpoint string
Host string
Token string
// contains filtered or unexported fields
}
A Client is an HTTP client for our GraphQL endpoint.
type Request ¶ added in v0.1.2969
type Request struct {
Query string `json:"query"`
Variables map[string]interface{} `json:"variables"`
// Header represent any request headers that will be set
// when the request is made.
Header http.Header `json:"-"`
}
Request is a GraphQL request.
func NewAuthorizedRequest ¶
NewAuthorizedRequest returns a new GraphQL request with the authorization headers set for CircleCI auth.
func NewUnauthorizedRequest ¶ added in v0.1.3305
NewUnauthorizedRequest returns a new GraphQL request without any authorization header.
Click to show internal directories.
Click to hide internal directories.