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 AuthResponse ¶
type ComplexityRoot ¶
type ComplexityRoot struct { AuthResponse struct { AccessToken func(childComplexity int) int User func(childComplexity int) int } Mutation struct { Login func(childComplexity int, input LoginInput) int Register func(childComplexity int, input RegisterInput) int } Query struct { Me func(childComplexity int) int } User struct { CreatedAt func(childComplexity int) int Email func(childComplexity int) int ID func(childComplexity int) int Username func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type LoginInput ¶
type MutationResolver ¶
type MutationResolver interface { Register(ctx context.Context, input RegisterInput) (*AuthResponse, error) Login(ctx context.Context, input LoginInput) (*AuthResponse, error) }
type RegisterInput ¶
type Resolver ¶
type Resolver struct {
AuthService graphql_twitter.AuthService
}
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.