graphql

package
v9.1.81+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Mutate makes _mutate_ http request to the GraphQL server
	Mutate(query string, variables Variables, out interface{}) error
	// Mutate makes _query_ http request to the GraphQL server
	Query(query string, variables Variables, out interface{}) error
	// SetHeader will set an HTTP header
	SetHeader(key, value string)
}

Client interface to client object

func New

func New(url string, apikey string, headers map[string]string) Client

New for use outside of the pinpoint org

func NewClient

func NewClient(customerID string, userID string, apikey string, url string) (Client, error)

NewClient returns a new instance of Client

type Variables

type Variables map[string]interface{}

Variables a simple alias to map[string]interface{}

Jump to

Keyboard shortcuts

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