directives

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDirectiveGetContext

func NewDirectiveGetContext(args directive.Arguments, nodeKind string) (directive.Directive, error)

func NewDirectiveResolveString

func NewDirectiveResolveString(args directive.Arguments, nodeKind string) (directive.Directive, error)

func NewDirectiveSetContext

func NewDirectiveSetContext(args directive.Arguments, nodeKind string) (directive.Directive, error)

Types

type DirectiveGetContext

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

func (*DirectiveGetContext) Execute

func (d *DirectiveGetContext) Execute(
	ctx context.Context,
	source interface{},
	resolvedValue interface{},
	fieldArgs map[string]interface{},
) (interface{}, context.Context, error)

type DirectiveResolveString

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

func (*DirectiveResolveString) Execute

func (d *DirectiveResolveString) Execute(
	ctx context.Context,
	source interface{},
	resolvedValue interface{},
	fieldArgs map[string]interface{},
) (interface{}, context.Context, error)

type DirectiveSetContext

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

func (*DirectiveSetContext) Execute

func (d *DirectiveSetContext) Execute(
	ctx context.Context,
	source interface{},
	resolvedValue interface{},
	fieldArgs map[string]interface{},
) (interface{}, context.Context, error)

Jump to

Keyboard shortcuts

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