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 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 ResolverRoot ¶
type ResolverRoot interface { Group() GroupResolver Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.