Documentation
¶
Overview ¶
pkg/browser/messages.go
pkg/browser/platform.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Platform ¶
type Platform interface {
// OpenURL opens the given URL in the default system browser.
OpenURL(url string) error
// OpenFile opens the given file path with the system default application.
OpenFile(path string) error
}
Platform abstracts the system browser/file-opener backend.
type Service ¶
type Service struct {
*core.ServiceRuntime[Options]
// contains filtered or unexported fields
}
func (*Service) HandleIPCEvents ¶
type TaskOpenFile ¶
type TaskOpenFile struct {
Path string `json:"path,omitempty"`
}
TaskOpenFile opens a file with the system default application. Result: nil
type TaskOpenURL ¶
type TaskOpenURL struct {
URL string `json:"url"`
}
TaskOpenURL opens a URL in the default system browser. Result: nil
Click to show internal directories.
Click to hide internal directories.