gql

package
v0.0.0-...-c2b5c71 Latest Latest
Warning

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

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

Documentation

Overview

Package gql adds a client to integration with Qontract-Server

Index

Constants

This section is empty.

Variables

View Source
var UseCompareClientKey useCompareClient = "useCompareClient"

UseCompareClientKey is the key used to store the useCompareClient value in the context

Functions

This section is empty.

Types

type QontractClient

type QontractClient struct {
	Client        graphql.Client
	CompareClinet *graphql.Client
	// contains filtered or unexported fields
}

QontractClient abstraction for generated GraphQL client

func NewQontractClient

func NewQontractClient(_ context.Context) (*QontractClient, error)

NewQontractClient creates a new QontractClient

func (*QontractClient) MakeRequest

func (c *QontractClient) MakeRequest(ctx context.Context, req *graphql.Request, resp *graphql.Response) error

MakeRequest makes a request to graphql server, ensuring schema usage is allowed

Jump to

Keyboard shortcuts

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