Skip to content

PreferencesBuilder🔗

Constructor🔗

func NewPreferencesBuilder() *PreferencesBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *PreferencesBuilder) Build() (Preferences, error)

CookiePreferences🔗

Cookie preferences

func (builder *PreferencesBuilder) CookiePreferences(cookiePreferences cog.Builder[preferences.CookiePreferences]) *PreferencesBuilder

HomeDashboardUID🔗

UID for the home dashboard

func (builder *PreferencesBuilder) HomeDashboardUID(homeDashboardUID string) *PreferencesBuilder

Language🔗

Selected language (beta)

func (builder *PreferencesBuilder) Language(language string) *PreferencesBuilder

Navigation preferences

func (builder *PreferencesBuilder) Navbar(navbar cog.Builder[preferences.NavbarPreference]) *PreferencesBuilder

QueryHistory🔗

Explore query history preferences

func (builder *PreferencesBuilder) QueryHistory(queryHistory cog.Builder[preferences.QueryHistoryPreference]) *PreferencesBuilder

Theme🔗

light, dark, empty is default

func (builder *PreferencesBuilder) Theme(theme string) *PreferencesBuilder

Timezone🔗

The timezone selection

TODO: this should use the timezone defined in common

func (builder *PreferencesBuilder) Timezone(timezone string) *PreferencesBuilder

WeekStart🔗

day of the week (sunday, monday, etc)

func (builder *PreferencesBuilder) WeekStart(weekStart string) *PreferencesBuilder

See also🔗