graphql

package
v0.0.0-...-1c44903 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 9 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 {
	Do(req *graphql.Request, res interface{}) error
}

func NewGraphQLClient

func NewGraphQLClient(graphqlEndpoint string, enableLogging bool, insecureSkipVerify bool) Client

func NewQueryAssertClient

func NewQueryAssertClient(t *testing.T, shouldFail bool, expectedReq []*graphql.Request, modifyResponseFunc ...func(t *testing.T, r interface{})) Client

type ClientConstructor

type ClientConstructor func(certificate *tls.Certificate, graphqlEndpoint string, enableLogging bool, insecureConfigFetch bool) (Client, error)

type ModifyResponseFunc

type ModifyResponseFunc []func(t *testing.T, r interface{})

type QueryAssertClient

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

func (*QueryAssertClient) Do

func (c *QueryAssertClient) Do(req *graphql.Request, res interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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