generated

package
v0.0.0-...-7a865d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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 {
	CollectionItem struct {
		Collection func(childComplexity int) int
		ID         func(childComplexity int) int
		Title      func(childComplexity int) int
	}

	Episodes struct {
		ImportTimedMetadata func(childComplexity int, episodeID string) int
	}

	MediaItems struct {
		ImportTimedMetadata func(childComplexity int, mediaItemID string) int
	}

	Preview struct {
		Asset      func(childComplexity int, id string) int
		Collection func(childComplexity int, filter string) int
	}

	PreviewAsset struct {
		Type func(childComplexity int) int
		URL  func(childComplexity int) int
	}

	PreviewCollection struct {
		Items func(childComplexity int) int
	}

	ProgressByOrg struct {
		Name     func(childComplexity int) int
		Progress func(childComplexity int) int
	}

	QueryRoot struct {
		Episodes   func(childComplexity int) int
		MediaItems func(childComplexity int) int
		Preview    func(childComplexity int) int
		Statistics func(childComplexity int) int
	}

	Statistics struct {
		LessonProgressGroupedByOrg func(childComplexity int, lessonID string, ageGroups []string, orgMaxSize *int, orgMinSize *int) int
	}
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type EpisodesResolver

type EpisodesResolver interface {
	ImportTimedMetadata(ctx context.Context, obj *model.Episodes, episodeID string) (bool, error)
}

type MediaItemsResolver

type MediaItemsResolver interface {
	ImportTimedMetadata(ctx context.Context, obj *model.MediaItems, mediaItemID string) (bool, error)
}

type PreviewResolver

type PreviewResolver interface {
	Collection(ctx context.Context, obj *model.Preview, filter string) (*model.PreviewCollection, error)
	Asset(ctx context.Context, obj *model.Preview, id string) (*model.PreviewAsset, error)
}

type QueryRootResolver

type QueryRootResolver interface {
	Preview(ctx context.Context) (*model.Preview, error)
	Statistics(ctx context.Context) (*model.Statistics, error)
	Episodes(ctx context.Context) (*model.Episodes, error)
	MediaItems(ctx context.Context) (*model.MediaItems, error)
}

type ResolverRoot

type ResolverRoot interface {
	Episodes() EpisodesResolver
	MediaItems() MediaItemsResolver
	Preview() PreviewResolver
	QueryRoot() QueryRootResolver
	Statistics() StatisticsResolver
}

type StatisticsResolver

type StatisticsResolver interface {
	LessonProgressGroupedByOrg(ctx context.Context, obj *model.Statistics, lessonID string, ageGroups []string, orgMaxSize *int, orgMinSize *int) ([]*model.ProgressByOrg, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL