graphql

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultEndpoint = "https://graphql.buildkite.com/v1"
)

Variables

View Source
var (
	DebugHTTP bool
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string) (*Client, error)

func NewClientWithEndpoint

func NewClientWithEndpoint(token string, endpoint string) (*Client, error)

func (*Client) Do

func (client *Client) Do(query string, vars map[string]interface{}) (*Response, error)

type Response

type Response struct {
	*http.Response
}

func (*Response) DecodeInto

func (r *Response) DecodeInto(v interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL