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 { Chatboard struct { Description func(childComplexity int) int ID func(childComplexity int) int ImageURL func(childComplexity int) int Members func(childComplexity int) int Messages func(childComplexity int) int Name func(childComplexity int) int } DeleteLink struct { ID func(childComplexity int) int } DeleteUser struct { ID func(childComplexity int) int } Link struct { Address func(childComplexity int) int ID func(childComplexity int) int Title func(childComplexity int) int User func(childComplexity int) int } Message struct { FileURL func(childComplexity int) int ID func(childComplexity int) int MessageBy func(childComplexity int) int MessageOn func(childComplexity int) int Text func(childComplexity int) int } Mutation struct { CreateLink func(childComplexity int, input model.NewLink) int CreateUser func(childComplexity int, input model.NewUser) int DeleteLink func(childComplexity int, id string) int DeleteUser func(childComplexity int, id string) int Login func(childComplexity int, input model.Login) int RefreshToken func(childComplexity int, input model.RefreshTokenInput) int UpdateLink func(childComplexity int, id string, input model.UpdateLink) int UpdateUser func(childComplexity int, id string, input model.UpdateUser) int } Query struct { Link func(childComplexity int) int User func(childComplexity int, input model.Fetch) int } Timeline struct { ID func(childComplexity int) int ImageURL func(childComplexity int) int Likes func(childComplexity int) int PostedBy func(childComplexity int) int PostedOn func(childComplexity int) int SubTimelines func(childComplexity int) int Text func(childComplexity int) int } User struct { ChatBoards func(childComplexity int) int Followers func(childComplexity int) int Following func(childComplexity int) int ID func(childComplexity int) int Key func(childComplexity int) int Timelines func(childComplexity int) int Username 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 { CreateUser(ctx context.Context, input model.NewUser) (*model.User, error) CreateLink(ctx context.Context, input model.NewLink) (*model.Link, error) UpdateUser(ctx context.Context, id string, input model.UpdateUser) (*model.User, error) UpdateLink(ctx context.Context, id string, input model.UpdateLink) (*model.Link, error) DeleteUser(ctx context.Context, id string) (*model.DeleteUser, error) DeleteLink(ctx context.Context, id string) (*model.DeleteLink, error) Login(ctx context.Context, input model.Login) (string, error) RefreshToken(ctx context.Context, input model.RefreshTokenInput) (string, 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.