Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Appearance settings
Theme string `json:"theme"`
AccentColor string `json:"accentColor"`
// Viewer settings
DefaultZoom int `json:"defaultZoom"`
ShowLeftSidebar bool `json:"showLeftSidebar"`
ShowRightSidebar bool `json:"showRightSidebar"`
DefaultViewMode string `json:"defaultViewMode"` // "single" or "scroll"
// File settings
RecentFilesLength int `json:"recentFilesLength"`
AutosaveInterval int `json:"autosaveInterval"`
// Certificate settings
CertificateStores []string `json:"certificateStores"`
TokenLibraries []string `json:"tokenLibraries"`
// Advanced settings
DebugMode bool `json:"debugMode"`
HardwareAccel bool `json:"hardwareAccel"`
}
Config holds all application settings persisted to disk.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides thread-safe access to application configuration.
func NewService ¶
NewService creates a config service using the default config directory.
func NewServiceWithDir ¶
NewServiceWithDir creates a config service using a custom directory.