filebrowser/types/settings.go
Henrique Dias 1e163bce84 feat: custom branding
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2018-12-29 10:13:04 +00:00

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"`
}