client

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OutputFieldInput         OutputFieldScalar         = "input"
	OutputNillableFieldInput OutputNillableFieldScalar = "input"
)

Functions

This section is empty.

Types

type Client

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

Client for graphqlclient

func New

func New(protoClient graphqlclientgen.ProtoClient) Client

New create new graphqlclient

func (Client) ReturnScalar

func (client Client) ReturnScalar(
	ctx context.Context,
	input bool,
) (bool, error)

ReturnScalar (query)

func (Client) ReturnScalarNillable

func (client Client) ReturnScalarNillable(
	ctx context.Context,
	input *bool,
) (*bool, error)

ReturnScalarNillable (query)

func (Client) Simple

func (client Client) Simple(
	ctx context.Context,
	fields OutputFields,
) (Output, error)

Simple (query)

func (Client) SimpleArgument

func (client Client) SimpleArgument(
	ctx context.Context,
	input string,
	fields OutputFields,
) (Output, error)

SimpleArgument (query)

func (Client) SimpleArgumentNillable

func (client Client) SimpleArgumentNillable(
	ctx context.Context,
	input *string,
	fields OutputNillableFields,
) (OutputNillable, error)

SimpleArgumentNillable (query)

func (Client) SimpleNillable

func (client Client) SimpleNillable(
	ctx context.Context,
	fields OutputFields,
) (*Output, error)

SimpleNillable (query)

type Output

type Output struct {
	// Input
	Input string `json:"input"`
}

Output

type OutputField

type OutputField interface {
	OutputFieldGraphQL() string
}

type OutputFieldScalar

type OutputFieldScalar string

func (OutputFieldScalar) OutputFieldGraphQL

func (field OutputFieldScalar) OutputFieldGraphQL() string

type OutputFields

type OutputFields []OutputField

type OutputNillable

type OutputNillable struct {
	// Input
	Input *string `json:"input"`
}

OutputNillable

type OutputNillableField

type OutputNillableField interface {
	OutputNillableFieldGraphQL() string
}

type OutputNillableFieldScalar

type OutputNillableFieldScalar string

func (OutputNillableFieldScalar) OutputNillableFieldGraphQL

func (field OutputNillableFieldScalar) OutputNillableFieldGraphQL() string

type OutputNillableFields

type OutputNillableFields []OutputNillableField

Jump to

Keyboard shortcuts

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