Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmbeddedStaticFS ¶
EmbeddedStaticFS returns the embedded React build files as an fs.FS.
Types ¶
type PaginatedTimeline ¶
type PaginatedTimeline struct {
Entries []model.TimelineEntry `json:"entries"`
GitRepo string `json:"git_repo"`
Total int `json:"total"`
Page int `json:"page"`
PageSize int `json:"page_size"`
HasMore bool `json:"has_more"`
}
PaginatedTimeline is the paginated API response for /api/timeline.
type Server ¶
type Server struct {
ProjectDir string
Port int
StaticFS fs.FS // embedded or filesystem-based
OnReady func(port int) // called once the server is listening
// contains filtered or unexported fields
}
Server serves the React UI and API endpoints.
func (*Server) ReloadData ¶
ReloadData re-reads timeline.json from disk and updates in-memory data.
Click to show internal directories.
Click to hide internal directories.