Documentation
¶
Overview ¶
Package insights persists saved reports — the "pin this report" feature that turns ad-hoc Explore into a dashboard you open every morning. Config-shaped (small, mutable), so it's a single JSON file rewritten atomically on change, separate from the append-only event log.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Insight ¶
type Insight struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Params map[string]string `json:"params"`
Created time.Time `json:"created"`
}
Insight is one saved report: a type (funnel|trend|breakdown|retention) plus the params Explore needs to re-run it.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store holds saved insights in memory and (when path != "") persists them.
func Open ¶
Open loads saved insights from path (empty/missing = start fresh). An empty path means in-memory only (used by the throwaway demo).
Click to show internal directories.
Click to hide internal directories.