Documentation ¶
Index ¶
- func BuildBaseFilter(client *config.Client, groups ...string) ([]types.Query, error)
- func DecodeCursor(s string) (*cursor, error)
- func NewCursor(from, size int) *cursor
- type ElasticResolver
- func (r *ElasticResolver) MediathekEntries(ctx context.Context, signatures []string) ([]*model.MediathekFullEntry, error)
- func (r *ElasticResolver) ReferencesFull(ctx context.Context, obj *model.MediathekFullEntry) ([]*model.MediathekBaseEntry, error)
- func (r *ElasticResolver) Search(ctx context.Context, query string, facets []*model.InFacet, ...) (*model.SearchResult, error)
- type Resolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBaseFilter ¶
func DecodeCursor ¶
Types ¶
type ElasticResolver ¶
type ElasticResolver struct {
// contains filtered or unexported fields
}
func NewElasticResolver ¶
func (*ElasticResolver) MediathekEntries ¶
func (r *ElasticResolver) MediathekEntries(ctx context.Context, signatures []string) ([]*model.MediathekFullEntry, error)
MediathekEntries is the resolver for the mediathekEntries field.
func (*ElasticResolver) ReferencesFull ¶
func (r *ElasticResolver) ReferencesFull(ctx context.Context, obj *model.MediathekFullEntry) ([]*model.MediathekBaseEntry, error)
func (*ElasticResolver) Search ¶
func (r *ElasticResolver) 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)
Search is the resolver for the search field.
type Resolver ¶
type Resolver interface { // Search is the resolver for the search field. 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 is the resolver for the mediathekEntries field. MediathekEntries(ctx context.Context, signatures []string) ([]*model.MediathekFullEntry, error) ReferencesFull(ctx context.Context, obj *model.MediathekFullEntry) ([]*model.MediathekBaseEntry, error) }
func NewBadgerResolver ¶
Click to show internal directories.
Click to hide internal directories.