31 lines
890 B
Go
31 lines
890 B
Go
package types
|
|
|
|
// AuthMethod is an authentication method.
|
|
type AuthMethod string
|
|
|
|
// Settings contain the main settings of the application.
|
|
type Settings struct {
|
|
Key []byte `json:"key"`
|
|
BaseURL string `json:"baseURL"`
|
|
Signup bool `json:"signup"`
|
|
Defaults UserDefaults `json:"defaults"`
|
|
AuthMethod AuthMethod `json:"authMethod"`
|
|
Branding Branding `json:"Branding"`
|
|
}
|
|
|
|
// Branding contains the branding settings of the app.
|
|
type Branding struct {
|
|
Name string `json:"name"`
|
|
DisableExternal bool `json:"disableExternal"`
|
|
Files string `json:"string"`
|
|
}
|
|
|
|
// UserDefaults is a type that holds the default values
|
|
// for some fields on User.
|
|
type UserDefaults struct {
|
|
Scope string `json:"scope"`
|
|
Locale string `json:"locale"`
|
|
ViewMode ViewMode `json:"viewMode"`
|
|
Perm Permissions `json:"perm"`
|
|
}
|