directives

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDirectiveExpect added in v0.0.4

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

func NewDirectiveGetContext

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

func NewDirectiveResolveArg added in v0.0.4

func NewDirectiveResolveArg(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 DirectiveExpect added in v0.0.4

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

func (*DirectiveExpect) Define added in v0.0.6

func (d *DirectiveExpect) Define(_ string, _ interface{}) error

func (*DirectiveExpect) Execute added in v0.0.4

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

type DirectiveGetContext

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

func (*DirectiveGetContext) Define added in v0.0.6

func (d *DirectiveGetContext) Define(_ string, _ interface{}) error

func (*DirectiveGetContext) Execute

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

type DirectiveResolveArg added in v0.0.4

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

func (*DirectiveResolveArg) Define added in v0.0.6

func (d *DirectiveResolveArg) Define(_ string, _ interface{}) error

func (*DirectiveResolveArg) Execute added in v0.0.4

func (d *DirectiveResolveArg) 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) Define added in v0.0.6

func (d *DirectiveResolveString) Define(_ string, _ interface{}) error

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) Define added in v0.0.6

func (d *DirectiveSetContext) Define(_ string, _ interface{}) error

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