Documentation ¶
Overview ¶
Package settings provides access to persistent user settings.
Index ¶
- Constants
- type Key
- type Settings
- func (p Settings) Get(key Key) string
- func (p Settings) GetBool(key Key) bool
- func (p Settings) GetFloat64(key Key) float64
- func (p Settings) GetInt(key Key) int
- func (p Settings) Set(key Key, value string)
- func (p Settings) SetBool(key Key, value bool)
- func (p Settings) SetFloat64(key Key, value float64)
- func (p Settings) SetInt(key Key, value int)
Constants ¶
View Source
const ( DefaultIMAPPort = "1143" DefaultSMTPPort = "1025" DefaultAPIPort = "1042" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶ added in v2.4.0
type Key string
const ( FirstStartKey Key = "first_time_start" FirstStartGUIKey Key = "first_time_start_gui" LastHeartbeatKey Key = "last_heartbeat" APIPortKey Key = "user_port_api" IMAPPortKey Key = "user_port_imap" SMTPPortKey Key = "user_port_smtp" SMTPSSLKey Key = "user_ssl_smtp" AllowProxyKey Key = "allow_proxy" AutostartKey Key = "autostart" AutoUpdateKey Key = "autoupdate" CookiesKey Key = "cookies" LastVersionKey Key = "last_used_version" UpdateChannelKey Key = "update_channel" RolloutKey Key = "rollout" PreferredKeychainKey Key = "preferred_keychain" CacheEnabledKey Key = "cache_enabled" CacheCompressionKey Key = "cache_compression" CacheLocationKey Key = "cache_location" CacheMinFreeAbsKey Key = "cache_min_free_abs" CacheMinFreeRatKey Key = "cache_min_free_rat" CacheConcurrencyRead Key = "cache_concurrent_read" CacheConcurrencyWrite Key = "cache_concurrent_write" IMAPWorkers Key = "imap_workers" FetchWorkers Key = "fetch_workers" AttachmentWorkers Key = "attachment_workers" ColorScheme Key = "color_scheme" RebrandingMigrationKey Key = "rebranding_migrated" IsAllMailVisible Key = "is_all_mail_visible" )
Keys of preferences in JSON file.
type Settings ¶
type Settings struct {
// contains filtered or unexported fields
}
func (Settings) GetFloat64 ¶
func (Settings) SetFloat64 ¶
Click to show internal directories.
Click to hide internal directories.