homefilter

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package homefilter shares bounded discovery suitability checks during one multi-request Home load. Viewer authorization remains a separate check.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Allowed

func Allowed(ctx context.Context, titles []core.Title, filter func(context.Context, []core.Title) []core.Title) map[core.RatingKey]bool

Allowed preserves the producer's first occurrence for each key, just as the catalogue filter does. Oversized pools are processed but never retained.

func With

func With(ctx context.Context, snapshot *Snapshot) context.Context

Types

type Snapshot

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

Jump to

Keyboard shortcuts

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