graph

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCursor

func DecodeCursor(s string) (*cursor, error)

func NewCursor

func NewCursor(from, size int) *cursor

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Facet struct {
		Name   func(childComplexity int) int
		Values func(childComplexity int) int
	}

	FacetValueInt struct {
		Count  func(childComplexity int) int
		IntVal func(childComplexity int) int
	}

	FacetValueString struct {
		Count  func(childComplexity int) int
		StrVal func(childComplexity int) int
	}

	KeyValue struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	Media struct {
		Fulltext    func(childComplexity int) int
		Height      func(childComplexity int) int
		Length      func(childComplexity int) int
		Mimetype    func(childComplexity int) int
		Name        func(childComplexity int) int
		Orientation func(childComplexity int) int
		Pronom      func(childComplexity int) int
		Type        func(childComplexity int) int
		URI         func(childComplexity int) int
		Width       func(childComplexity int) int
	}

	MediaList struct {
		Items func(childComplexity int) int
		Name  func(childComplexity int) int
	}

	MediathekBaseEntry struct {
		Catalog           func(childComplexity int) int
		Category          func(childComplexity int) int
		CollectionTitle   func(childComplexity int) int
		Date              func(childComplexity int) int
		ID                func(childComplexity int) int
		License           func(childComplexity int) int
		Person            func(childComplexity int) int
		Place             func(childComplexity int) int
		Poster            func(childComplexity int) int
		Publisher         func(childComplexity int) int
		References        func(childComplexity int) int
		Rights            func(childComplexity int) int
		Series            func(childComplexity int) int
		Signature         func(childComplexity int) int
		SignatureOriginal func(childComplexity int) int
		Source            func(childComplexity int) int
		Tags              func(childComplexity int) int
		Title             func(childComplexity int) int
		Type              func(childComplexity int) int
		URL               func(childComplexity int) int
	}

	MediathekFullEntry struct {
		Abstract       func(childComplexity int) int
		Base           func(childComplexity int) int
		Extra          func(childComplexity int) int
		ID             func(childComplexity int) int
		Media          func(childComplexity int) int
		Notes          func(childComplexity int) int
		ReferencesFull func(childComplexity int) int
	}

	MultiLangString struct {
		Lang       func(childComplexity int) int
		Translated func(childComplexity int) int
		Value      func(childComplexity int) int
	}

	Note struct {
		Text  func(childComplexity int) int
		Title func(childComplexity int) int
	}

	PageInfo struct {
		CurrentCursor   func(childComplexity int) int
		EndCursor       func(childComplexity int) int
		HasNextPage     func(childComplexity int) int
		HasPreviousPage func(childComplexity int) int
		StartCursor     func(childComplexity int) int
	}

	Person struct {
		Name func(childComplexity int) int
		Role func(childComplexity int) int
	}

	Query struct {
		MediathekEntries func(childComplexity int, signatures []string) int
		Search           func(childComplexity int, query string, facets []*model.InFacet, filter []*model.InFilter, vector []float64, first *int, size *int, cursor *string, sort []*model.SortField) int
	}

	Reference struct {
		Signature func(childComplexity int) int
		Title     func(childComplexity int) int
		Type      func(childComplexity int) int
	}

	SearchResult struct {
		Edges      func(childComplexity int) int
		Facets     func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}
}

type Config

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

type DirectiveRoot

type DirectiveRoot struct {
}

type MediathekFullEntryResolver

type MediathekFullEntryResolver interface {
	ReferencesFull(ctx context.Context, obj *model.MediathekFullEntry) ([]*model.MediathekBaseEntry, error)
}

type QueryResolver

type QueryResolver interface {
	Search(ctx context.Context, query string, facets []*model.InFacet, filter []*model.InFilter, vector []float64, first *int, size *int, cursor *string, sort []*model.SortField) (*model.SearchResult, error)
	MediathekEntries(ctx context.Context, signatures []string) ([]*model.MediathekFullEntry, error)
}

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(serverResolver resolver.Resolver, logger zLogger.ZLogger) *Resolver

func (*Resolver) MediathekFullEntry

func (r *Resolver) MediathekFullEntry() MediathekFullEntryResolver

MediathekFullEntry returns MediathekFullEntryResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() QueryResolver

Query returns QueryResolver implementation.

type ResolverRoot

type ResolverRoot interface {
	MediathekFullEntry() MediathekFullEntryResolver
	Query() QueryResolver
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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