userSettings

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserSettings

type UserSettings struct {
	Kind         UserSettingsKind   `json:"kind,omitzero"`
	Version      *float64           `json:"version,omitzero" validate:"integer,min=0"`
	Created      string             `json:"created,omitzero" validate:"date"`
	LastModified string             `json:"lastModified,omitzero" validate:"date"`
	Links        base.Links         `json:"links,omitzero"`
	Global       UserSettingsGlobal `json:"global,omitzero"`
	Orgs         UserSettingsOrgs   `json:"orgs,omitzero"`
}

func (UserSettings) ValidationRule

func (UserSettings) ValidationRule() *validate.Rule

ValidationRule reflects UserSettings, the schema the merged settings document validates against.

type UserSettingsGlobal

type UserSettingsGlobal map[string]any

UserSettingsGlobal and UserSettingsOrg are open objects: their content is the client's.

func (UserSettingsGlobal) ValidationRule

func (UserSettingsGlobal) ValidationRule() *validate.Rule

type UserSettingsKind

type UserSettingsKind string
const (
	UserSettingsKindUserSettings UserSettingsKind = "userSettings"
)

func (UserSettingsKind) EnumValues

func (UserSettingsKind) EnumValues() []string

type UserSettingsOrg

type UserSettingsOrg map[string]any

func (UserSettingsOrg) ValidationRule

func (UserSettingsOrg) ValidationRule() *validate.Rule

type UserSettingsOrgs

type UserSettingsOrgs map[string]UserSettingsOrg

UserSettingsOrgs is keyed by org name.

func (UserSettingsOrgs) ValidationRule

func (UserSettingsOrgs) ValidationRule() *validate.Rule

ValidationRule keys orgs by the org name rule (org.ts checkOrgName), so a key no org could have is refused.

Jump to

Keyboard shortcuts

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