Documentation
¶
Overview ¶
Package notices stores explanatory-notice preferences in the app datastore. It never suppresses operational alerts or grants any application capability.
Index ¶
Constants ¶
const BrowserLifetime = 365 * 24 * time.Hour
BrowserLifetime bounds both the preference cookie and anonymous record lifetime.
Variables ¶
var Catalog = func() []Definition { var definitions []Definition if err := json.Unmarshal(catalogJSON, &definitions); err != nil { panic(err) } return definitions }()
Catalog is shared with the frontend at build time.
var ErrUnknown = errors.New("unknown informational notice")
ErrUnknown prevents arbitrary or operational messages from being suppressed.
Functions ¶
Types ¶
type Definition ¶
type Definition struct {
ID string `json:"id"`
Label string `json:"label"`
BrowserOnly bool `json:"browser_only"`
}
Definition is one stable explanatory notice shared with the UI.
type Owner ¶
type Owner struct{ AccountID, BrowserHash string }
Owner is resolved by the HTTP boundary, never from a request body.