generated

package
v0.0.0-...-b797407 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Group struct {
		ID     func(childComplexity int) int
		Kind   func(childComplexity int) int
		Name   func(childComplexity int) int
		Parent func(childComplexity int) int
	}

	Mutation struct {
		CreateGroup func(childComplexity int, name string, input *directory.CreateGroupOptions) int
		CreateUser  func(childComplexity int, username string, input *directory.CreateUserOptions) int
		DeleteGroup func(childComplexity int, id string) int
	}

	Query struct {
		Groups  func(childComplexity int) int
		Users   func(childComplexity int) int
		Version func(childComplexity int) int
	}

	User struct {
		ID       func(childComplexity int) int
		Kind     func(childComplexity int) int
		Mail     func(childComplexity int) int
		Name     func(childComplexity int) int
		Nickname func(childComplexity int) int
		Phone    func(childComplexity int) int
		Picture  func(childComplexity int) int
		Profile  func(childComplexity int) int
		Username func(childComplexity int) int
		Website  func(childComplexity int) int
	}

	Version struct {
		Version func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type GroupResolver

type GroupResolver interface {
	Parent(ctx context.Context, obj *directory.Group) (*directory.Group, error)
}

type MutationResolver

type MutationResolver interface {
	CreateUser(ctx context.Context, username string, input *directory.CreateUserOptions) (*directory.User, error)
	CreateGroup(ctx context.Context, name string, input *directory.CreateGroupOptions) (*directory.Group, error)
	DeleteGroup(ctx context.Context, id string) (string, error)
}

type QueryResolver

type QueryResolver interface {
	Version(ctx context.Context) (*model.Version, error)
	Users(ctx context.Context) ([]directory.User, error)
	Groups(ctx context.Context) ([]directory.Group, error)
}

type ResolverRoot

type ResolverRoot interface {
	Group() GroupResolver
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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