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 { ConfirmEmailResponse struct { Errors func(childComplexity int) int Successful func(childComplexity int) int } FieldError struct { Field func(childComplexity int) int Message func(childComplexity int) int } Mutation struct { ChangePassword func(childComplexity int, credentials model.ChangePasswordInput) int ConfirmEmail func(childComplexity int, token string) int ForgotPassword func(childComplexity int, credentials model.ForgotPasswordInput) int Login func(childComplexity int, credentials model.LoginInput) int Logout func(childComplexity int) int Register func(childComplexity int, credentials model.RegisterInput) int } Query struct { Me func(childComplexity int) int } ResetPasswordResponse struct { Errors func(childComplexity int) int Successful func(childComplexity int) int } User struct { CreatedAt func(childComplexity int) int Email func(childComplexity int) int ID func(childComplexity int) int UpdatedAt func(childComplexity int) int Username func(childComplexity int) int } UserResponse struct { Errors func(childComplexity int) int User 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 { ConfirmEmail(ctx context.Context, token string) (*model.ConfirmEmailResponse, error) Login(ctx context.Context, credentials model.LoginInput) (*model.UserResponse, error) Logout(ctx context.Context) (bool, error) Register(ctx context.Context, credentials model.RegisterInput) (*model.UserResponse, error) ForgotPassword(ctx context.Context, credentials model.ForgotPasswordInput) (*model.ResetPasswordResponse, error) ChangePassword(ctx context.Context, credentials model.ChangePasswordInput) (*model.ResetPasswordResponse, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver User() UserResolver }
Click to show internal directories.
Click to hide internal directories.