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 {
Certificate struct {
Certificate func(childComplexity int) int
Expiry func(childComplexity int) int
Key func(childComplexity int) int
}
Mutation struct {
CreateCertificate func(childComplexity int, input model.NewCertificate) int
}
Query struct {
Certificate 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 {
CreateCertificate(ctx context.Context, input model.NewCertificate) (*model.Certificate, error)
}
type QueryResolver ¶
type QueryResolver interface {
Certificate(ctx context.Context) ([]*model.Certificate, error)
}
type ResolverRoot ¶
type ResolverRoot interface {
Mutation() MutationResolver
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.