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"`
// Signing settings
TSAURL string `json:"tsaUrl"`
SignatureLocationLookup bool `json:"signatureLocationLookup"`
// CheckRevocationOnline asks the OCSP/CRL servers a signer's certificate
// names whether it was revoked, when verifying signatures.
CheckRevocationOnline bool `json:"checkRevocationOnline"`
LastCertificateFingerprint string `json:"lastCertificateFingerprint"`
LastSignatureProfileID string `json:"lastSignatureProfileId"`
// 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.
func (*Service) SetLastSigning ¶ added in v1.0.0
SetLastSigning saves the certificate and profile of the last signature. It changes only those two fields of config.json as it is on disk, so settings another window saved since Load are kept.