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 { DeleteResponse struct { DeleteInterviewID func(childComplexity int) int } Interview struct { Booked func(childComplexity int) int Difficulty func(childComplexity int) int Duration func(childComplexity int) int Guest func(childComplexity int) int GuestType func(childComplexity int) int ID func(childComplexity int) int JoinURL func(childComplexity int) int MeetingCode func(childComplexity int) int Name func(childComplexity int) int Note func(childComplexity int) int Skills func(childComplexity int) int Time func(childComplexity int) int } Mutation struct { BookInterview func(childComplexity int, input model.BookInterview) int CancelInterview func(childComplexity int, id string) int ScheduleInterview func(childComplexity int, input model.InterviewInput) int UpdateInterview func(childComplexity int, id string, input model.InterviewInput) int } Query struct { AllInterviews func(childComplexity int) int Interview func(childComplexity int, id string) int } TempUser struct { Email func(childComplexity int) int Name func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { ScheduleInterview(ctx context.Context, input model.InterviewInput) (*model.Interview, error) UpdateInterview(ctx context.Context, id string, input model.InterviewInput) (*model.Interview, error) CancelInterview(ctx context.Context, id string) (*model.DeleteResponse, error) BookInterview(ctx context.Context, input model.BookInterview) (*model.Interview, error) }
type QueryResolver ¶
type Resolver ¶
type Resolver struct{}
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation returns MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.