Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSchema ¶
func NewSchema(client *ent.Client, importer RepoImporter) graphql.ExecutableSchema
NewSchema creates a graphql executable schema.
Types ¶
type RepoImporter ¶ added in v0.0.7
type RepoImporter interface {
Import(ctx context.Context, repo *ent.Repository, filters ...func(path string) bool) error
}
A RepoImporter is responsible for importing tomes from the provided URL (filter based on provided filter options).
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver is the resolver root.
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() generated.MutationResolver
Mutation returns generated.MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() generated.QueryResolver
Query returns generated.QueryResolver implementation.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.