Documentation
¶
Overview ¶
Package app is the Wails bind target that wires together all business packages.
Index ¶
- Variables
- type App
- func (a *App) CopyItem(id string) error
- func (a *App) CopyRemoteImage(imageDataBase64 string, mimeType string) error
- func (a *App) CopyRemoteItem(content string) error
- func (a *App) GetConfigPath() string
- func (a *App) GetHistory() []clipboard.ClipboardEntry
- func (a *App) GetMaxPinned() int
- func (a *App) GetRemoteClipboards() []peersclipsync.PeerClipboard
- func (a *App) GetTheme() theme.ThemeColors
- func (a *App) NeedsPassphrase() bool
- func (a *App) RemoteClipboardsEnabled() bool
- func (a *App) SetPinnedIDs(ids []string)
- func (a *App) Shutdown(ctx context.Context)
- func (a *App) Startup(ctx context.Context)
- func (a *App) SubmitPassphrase(p string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
var ( ErrSpecifiedThemeFileNotFound = errors.New("specified Omarchy theme config file was not found") ErrDefaultThemeFilesNotFound = errors.New("no config file was found in the default Omarchy 3 and 4 locations") )
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the Wails bind target. It owns startup/shutdown and delegates to business packages.
func (*App) CopyItem ¶
CopyItem writes the entry with the given ID back to the system clipboard and triggers the copy hook.
func (*App) CopyRemoteImage ¶
CopyRemoteImage writes base64-encoded image data from a remote peer to the system clipboard and triggers the copy hook.
func (*App) CopyRemoteItem ¶
CopyRemoteItem writes the given text directly to the system clipboard and triggers the copy hook.
func (*App) GetConfigPath ¶
GetConfigPath returns the path to the configuration file.
func (*App) GetHistory ¶
func (a *App) GetHistory() []clipboard.ClipboardEntry
GetHistory returns all clipboard entries in reverse-chronological order.
func (*App) GetMaxPinned ¶ added in v0.6.0
GetMaxPinned returns the maximum number of clipboard items that can be pinned.
func (*App) GetRemoteClipboards ¶
func (a *App) GetRemoteClipboards() []peersclipsync.PeerClipboard
GetRemoteClipboards returns clipboard entries from all discovered peers.
func (*App) GetTheme ¶
func (a *App) GetTheme() theme.ThemeColors
GetTheme returns the currently loaded theme colors.
func (*App) NeedsPassphrase ¶
NeedsPassphrase reports whether a passphrase has not yet been configured.
func (*App) RemoteClipboardsEnabled ¶
RemoteClipboardsEnabled reports whether remote clipboard sync is enabled.
func (*App) SetPinnedIDs ¶ added in v0.6.0
SetPinnedIDs tells the monitor which entry IDs are currently pinned so they survive history trimming.
func (*App) SubmitPassphrase ¶
SubmitPassphrase validates, saves the passphrase provided by the user, and starts networking.
type Config ¶
type Config struct {
MaxHistory int
MaxPinned int
MaxPngImageMB int
MaxNonPngImageMB int
ThemeColorPath string
ConfigPath string
CopyHook string
PollInterval time.Duration
RemoteClipboardsPollInterval time.Duration
RemoteClipboardsMaxHistory int
PeersPollInterval time.Duration
PeersMDNSInterface string
DisableRemoteClipboards bool
ManualPeersList []string
SyncServerPort int
}
Config holds all configurable values for the application.