resolvers

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args map[string]interface{}

type DataReturn

type DataReturn interface{}

type Definition

type Definition *ast.Definition

type Directive

type Directive interface {
	Invoke(args map[string]interface{}, typeName string, fieldName string) (DataReturn, definitionError.GQLError)
}

type DirectiveList

type DirectiveList map[string]interface{}

type ObjectTypeInterface

type ObjectTypeInterface interface {
	Resolver(ResolverInfo) (DataReturn, definitionError.GQLError)
	Subscribe(ResolverInfo) bool
}

type Parent

type Parent interface{}

type ResolverInfo

type ResolverInfo struct {
	Operation         string
	Resolver          string
	Args              Args
	Parent            Parent
	Directives        DirectiveList
	TypeName          string
	ParentTypeName    *string
	SubscriptionValue interface{}
	SessionID         string
	RestInfo          *RestInfo
}

type RestInfo

type RestInfo struct {
	Path      string
	PathSplit []string
	GET       map[string][]string
	POST      map[string][]string

	Request *http.Request
	Writer  http.ResponseWriter
	// contains filtered or unexported fields
}

func (*RestInfo) GetHeaders

func (o *RestInfo) GetHeaders() map[string]string

func (*RestInfo) SetHTTPRequest

func (o *RestInfo) SetHTTPRequest(r *http.Request)

func (*RestInfo) SetHeader

func (o *RestInfo) SetHeader(header, value string)

type Scalar

type Scalar interface {
	Assess(resolved ScalarResolved) (r interface{}, err definitionError.GQLError)
	Set(value interface{}) (r interface{}, err definitionError.GQLError)
}

type ScalarResolved

type ScalarResolved struct {
	Value        interface{}
	ResolverName string
	Resolved     *structs.Struct
}

type Schema

type Schema *ast.Schema

type Subscription

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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