helpers

package
v0.0.0-...-1081ff4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserKey = utils.Key("user")
)

Variables

This section is empty.

Functions

func GetFields

func GetFields(ctx context.Context) map[string]Field

func GetNestedPreloads

func GetNestedPreloads(ctx *graphql.OperationContext, fields []graphql.CollectedField) map[string]Field

Types

type ErrorGQL

type ErrorGQL error
var (
	ErrUnauthorized        ErrorGQL = fmt.Errorf("unauthorized")
	ErrAccessDenied        ErrorGQL = fmt.Errorf("access denied")
	ErrUnknownEmote        ErrorGQL = fmt.Errorf("unknown emote")
	ErrUnknownUser         ErrorGQL = fmt.Errorf("unknown user")
	ErrUnknownRole         ErrorGQL = fmt.Errorf("unknown role")
	ErrUnknownReport       ErrorGQL = fmt.Errorf("unknown report")
	ErrBadObjectID         ErrorGQL = fmt.Errorf("bad object id")
	ErrInternalServerError ErrorGQL = fmt.Errorf("internal server error")
	ErrBadInt              ErrorGQL = fmt.Errorf("bad int")
	ErrDontBeSilly         ErrorGQL = fmt.Errorf("don't be silly")
)

type Field

type Field struct {
	Name     string
	Children map[string]Field
}

Jump to

Keyboard shortcuts

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