generated

package
v0.0.0-...-5b4c5eb Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 12 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 {
	CreateFollowingTeacherPayload struct {
		ID        func(childComplexity int) int
		TeacherID func(childComplexity int) int
	}

	DeleteFollowingTeachersPayload struct {
		TeacherIds func(childComplexity int) int
	}

	Empty struct {
		ID func(childComplexity int) int
	}

	FollowingTeacher struct {
		CreatedAt func(childComplexity int) int
		ID        func(childComplexity int) int
		Teacher   func(childComplexity int) int
	}

	FollowingTeacherConnection struct {
		Edges    func(childComplexity int) int
		Nodes    func(childComplexity int) int
		PageInfo func(childComplexity int) int
	}

	FollowingTeacherEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Mutation struct {
		CreateEmpty                 func(childComplexity int) int
		CreateFollowingTeacher      func(childComplexity int, input model.CreateFollowingTeacherInput) int
		DeleteFollowingTeachers     func(childComplexity int, input model.DeleteFollowingTeachersInput) int
		UpdateNotificationTimeSpans func(childComplexity int, input model.UpdateNotificationTimeSpansInput) int
		UpdateViewer                func(childComplexity int, input model.UpdateViewerInput) int
	}

	NotificationTimeSpan struct {
		FromHour   func(childComplexity int) int
		FromMinute func(childComplexity int) int
		ToHour     func(childComplexity int) int
		ToMinute   func(childComplexity int) int
	}

	NotificationTimeSpanPayload struct {
		TimeSpans func(childComplexity int) int
	}

	PageInfo struct {
		HasNextPage     func(childComplexity int) int
		HasPreviousPage func(childComplexity int) int
	}

	Query struct {
		Empty             func(childComplexity int) int
		FollowingTeachers func(childComplexity int) int
		Viewer            func(childComplexity int) int
	}

	Teacher struct {
		ID   func(childComplexity int) int
		Name func(childComplexity int) int
	}

	User struct {
		Email                 func(childComplexity int) int
		FollowingTeachers     func(childComplexity int, first *int, after *string, last *int, before *string) int
		ID                    func(childComplexity int) int
		NotificationTimeSpans func(childComplexity int) int
		ShowTutorial          func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	CreateEmpty(ctx context.Context) (*model.Empty, error)
	CreateFollowingTeacher(ctx context.Context, input model.CreateFollowingTeacherInput) (*model.CreateFollowingTeacherPayload, error)
	DeleteFollowingTeachers(ctx context.Context, input model.DeleteFollowingTeachersInput) (*model.DeleteFollowingTeachersPayload, error)
	UpdateNotificationTimeSpans(ctx context.Context, input model.UpdateNotificationTimeSpansInput) (*model.NotificationTimeSpanPayload, error)
	UpdateViewer(ctx context.Context, input model.UpdateViewerInput) (*model.User, error)
}

type QueryResolver

type QueryResolver interface {
	Empty(ctx context.Context) (*model.Empty, error)
	FollowingTeachers(ctx context.Context) ([]*model.FollowingTeacher, error)
	Viewer(ctx context.Context) (*model.User, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
	User() UserResolver
}

type UserResolver

type UserResolver interface {
	FollowingTeachers(ctx context.Context, obj *model.User, first *int, after *string, last *int, before *string) (*model.FollowingTeacherConnection, error)
	NotificationTimeSpans(ctx context.Context, obj *model.User) ([]*model.NotificationTimeSpan, error)
}

Jump to

Keyboard shortcuts

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