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 AuthAdminOpsResolver ¶
type AuthAdminOpsResolver interface { Login(ctx context.Context, obj *model.AuthAdminOps, account string, password string) (interface{}, error) Register(ctx context.Context, obj *model.AuthAdminOps, input model.RegisterAdmin) (interface{}, error) }
type ComplexityRoot ¶
type ComplexityRoot struct { AuthAdminOps struct { Login func(childComplexity int, account string, password string) int Register func(childComplexity int, input model.RegisterAdmin) int } Mutation struct { AuthAdmin func(childComplexity int) int } Post struct { Files func(childComplexity int) int ID func(childComplexity int) int Summary func(childComplexity int) int Title func(childComplexity int) int } Query struct { AuthAdmin func(childComplexity int) int Posts func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type MutationResolver ¶
type MutationResolver interface {
AuthAdmin(ctx context.Context) (*model.AuthAdminOps, error)
}
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { AuthAdminOps() AuthAdminOpsResolver Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.