Preferences🔗
Definition🔗
type Preferences struct {
// Explicit home URL (NOTE: this can only be modified in the system settings)
HomeURL *string `json:"homeURL,omitempty"`
// UID for the home dashboard
HomeDashboardUID *string `json:"homeDashboardUID,omitempty"`
// The timezone selection
Timezone *string `json:"timezone,omitempty"`
// day of the week (sunday, monday, etc)
WeekStart *string `json:"weekStart,omitempty"`
// user interface theme
Theme *string `json:"theme,omitempty"`
// Selected language
Language *string `json:"language,omitempty"`
// Explore query history preferences
QueryHistory *preferencesv1alpha1.QueryHistoryPreference `json:"queryHistory,omitempty"`
// Navigation preferences
Navbar *preferencesv1alpha1.NavbarPreference `json:"navbar,omitempty"`
}
Methods🔗
UnmarshalJSONStrict🔗
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode Preferences from JSON.
Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …
Equals🔗
Equals tests the equality of two Preferences objects.
Validate🔗
Validate checks all the validation constraints that may be defined on Preferences fields for violations and returns them.