Documentation
¶
Overview ¶
Package readerprefs carries guest preferences and the canonical kind/entity preference key. Preferences never grant access or weaken domain policy.
Index ¶
- Constants
- func Key(kind, entity string) string
- func Overrides(ctx context.Context, allowed map[string]map[string]bool) (map[string]string, error)
- func Stored(values map[string]string, kind, entity string) (visible, overridden bool)
- func WithHeader(ctx context.Context, values []string) context.Context
Constants ¶
View Source
const Default = "default"
Default prevents an old unscoped preference from returning after a reset.
View Source
const Header = "ContentKit-Reader-Preferences"
View Source
const Hide = "hide"
View Source
const Show = "show"
Variables ¶
This section is empty.
Functions ¶
func Overrides ¶
Overrides applies scoped choices and legacy fallback only to the current domain's permitted kind/entity pairs. Unknown and locked pairs are ignored.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.