Documentation
¶
Overview ¶
Package uiprefs serves the UI-only preference store (config.UIPrefs): small per-instance settings the frontend keeps server-side so a browser tab and the desktop window see the same state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the UI preference endpoints.
func NewHandler ¶
NewHandler creates a UI preference handler.
func (*Handler) RegisterRoutes ¶ added in v1.261002.1
type PatchUIPrefsRequest ¶
type PatchUIPrefsRequest struct {
Prefs map[string]json.RawMessage `json:"prefs" binding:"required"`
}
PatchUIPrefsRequest merges keys into the store; a null value deletes a key.
type UIPrefsResponse ¶
type UIPrefsResponse struct {
Success bool `json:"success"`
Prefs map[string]json.RawMessage `json:"prefs,omitempty"`
Error string `json:"error,omitempty"`
}
UIPrefsResponse carries every stored UI preference.