graphql

package
v1.7.6-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoData = errors.New("no data")

Functions

func ContextWithTrackInput

func ContextWithTrackInput(ctx context.Context, input query.TrackInput) context.Context

func NewAPIError

func NewAPIError(apiErr error, uErrs ...interface{}) error

Types

type APIError

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

func (*APIError) Error

func (e *APIError) Error() string

func (*APIError) SetAPIErrors

func (e *APIError) SetAPIErrors(err error)

func (*APIError) SetUserErrors

func (e *APIError) SetUserErrors(val []query.UserError)

func (*APIError) Unwrap

func (e *APIError) Unwrap() error

type Client

type Client struct {
	graphql.Client
}

func New

func New(endpoint string, httpClient *http.Client) (*Client, error)

func (*Client) GetSuggestedBranch

func (c *Client) GetSuggestedBranch(ctx context.Context, q query.SuggestedBranchInput) (result []string, _ error)

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, withAnnotation bool) (result query.GetUserUser, _ error)

func (*Client) IntrospectionQuery

func (c *Client) IntrospectionQuery(ctx context.Context) (json.RawMessage, error)

Directories

Path Synopsis
schema

Jump to

Keyboard shortcuts

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