facets

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package facets owns the names and selection policy for stored thread facets. Protocol and application adapters should project this catalog rather than repeating facet names or default sets.

Index

Constants

View Source
const (
	IssueKind       = "issue"
	PullRequestKind = "pull_request"
)

Thread kinds used by facet selection policy.

View Source
const (
	IssueComments    = "issue_comments"
	PRDetails        = "pr_details"
	PRReviews        = "pr_reviews"
	PRReviewComments = "pr_review_comments"
	PRChecks         = "pr_checks"
	PRReviewThreads  = "pr_review_threads"
	PRMergeState     = "pr_merge_state"
	PRMergeQueue     = "pr_merge_queue"
	PRClosingIssues  = "pr_closing_issues"
	PRFiles          = "pr_files"
	IssueTimeline    = "issue_timeline"
)

Facet names are stable corpus keys. Health-only facets are included here so every stored facet has one owner, even when it is not selectable hydration.

Variables

This section is empty.

Functions

func AllNames

func AllNames() []string

AllNames returns every stored facet key, including health-only projections.

func DefaultFor

func DefaultFor(kind string) []string

DefaultFor returns the default hydration facets for a thread kind.

func SelectableFor

func SelectableFor(kind string) []string

SelectableFor returns facets accepted for explicit hydration of a thread kind. Timeline is intentionally explicit-only because it may be large.

func SelectableNames

func SelectableNames() []string

SelectableNames returns the union used by protocol schemas. Per-thread applicability remains enforced by the application service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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