Documentation
¶
Overview ¶
Package api exposes The Rabbit Hole's item store over HTTP as JSON — the stable /api/* contract (see docs/api.md). Handlers call the same internal/store functions the CLI calls. It is mounted by internal/server alongside the HTML web UI; the two are separate route sets over the same store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API wires the JSON HTTP handlers to a Store.
type Item ¶
type Item struct {
ID string `json:"id"`
Source string `json:"source"`
Title string `json:"title"`
Link string `json:"link"`
Status string `json:"status"`
LLMScore *int `json:"llm_score,omitempty"`
LLMScoreReason *string `json:"llm_score_reason,omitempty"`
LLMScoreModel *string `json:"llm_score_model,omitempty"`
LLMProfileID *string `json:"llm_profile_id,omitempty"`
LLMProfileName *string `json:"llm_profile_name,omitempty"`
LLMProfileHash *string `json:"llm_profile_hash,omitempty"`
UserScore *int `json:"user_score,omitempty"`
PublishedAt *time.Time `json:"published_at,omitempty"`
}
Item is the JSON shape of a store.ItemRow. Kept separate from ItemRow so internal/store stays free of HTTP/JSON concerns.