usersettings

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Languages = struct {
	Auto Language
	En   Language
	Ja   Language
}{
	"auto",
	"en",
	"ja",
}
View Source
var Themes = struct {
	Auto  Theme
	Dark  Theme
	Light Theme
}{
	"auto",
	"dark",
	"light",
}

Functions

This section is empty.

Types

type Language

type Language string

type Settings

type Settings struct {
	Language Language `json:"language"`        // Possible Values: `Auto`, `En`, `Ja`
	Region   string   `json:"region"`          // Region
	Scope    string   `json:"-" scope:"scope"` // The scope of this setting (user, userdefaults)
	Theme    Theme    `json:"theme"`           // Possible Values: `Auto`, `Dark`, `Light`
	Timezone string   `json:"timezone"`        // Timezone
}

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Name

func (me *Settings) Name() string

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

type Theme

type Theme string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL