Documentation
¶
Index ¶
- func ClearAppDataCmd(serial, pkg string) tea.Cmd
- func DeleteFileCmd(serial, path string) tea.Cmd
- func ExecuteCommand(serial string, args ...string) ([]byte, error)
- func FetchDeviceDetailsCmd(serial string) tea.Cmd
- func ForceStopAppCmd(serial, pkg string) tea.Cmd
- func FormatFileSize(sizeStr string) string
- func GetProperty(serial, prop string) (string, error)
- func GetSystemStatsCmd(serial string) tea.Cmd
- func LaunchAppCmd(serial, pkg string) tea.Cmd
- func ListAppsCmd(serial string) tea.Cmd
- func ListDevicesCmd() tea.Cmd
- func ListFilesCmd(serial, path string) tea.Cmd
- func NextLogcatLineCmd(s *LogcatSession) tea.Cmd
- func PairWirelessCmd(addr, port, pin string) tea.Cmd
- func ParseLines(data []byte) []string
- func PullFileCmd(serial, remotePath, localPath string) tea.Cmd
- func PushFileCmd(serial, localPath, remotePath string) tea.Cmd
- func RebootBootloaderCmd(serial string) tea.Cmd
- func RebootCmd(serial string) tea.Cmd
- func RebootRecoveryCmd(serial string) tea.Cmd
- func StartLogcatCmd(serial string) tea.Cmd
- func StartScrcpyCmd(serial string) tea.Cmd
- func ToggleScreenCmd(serial string) tea.Cmd
- func ToggleWifiCmd(serial string) tea.Cmd
- func UninstallAppCmd(serial, pkg string) tea.Cmd
- type App
- type AppActionErrorMsg
- type AppActionResultMsg
- type AppsLoadErrorMsg
- type AppsLoadedMsg
- type Device
- type DeviceActionErrorMsg
- type DeviceActionResultMsg
- type DeviceDetails
- type DeviceDetailsMsg
- type DevicesLoadedMsg
- type FileActionResultMsg
- type FileEntry
- type FilesLoadedMsg
- type LogcatErrorMsg
- type LogcatLineMsg
- type LogcatSession
- type LogcatStartedMsg
- type LogcatStoppedMsg
- type PairWirelessResultMsg
- type SystemStats
- type SystemStatsMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearAppDataCmd ¶
func DeleteFileCmd ¶
func FetchDeviceDetailsCmd ¶
func ForceStopAppCmd ¶
func FormatFileSize ¶
func GetProperty ¶
func GetSystemStatsCmd ¶
func LaunchAppCmd ¶
func ListAppsCmd ¶
func ListDevicesCmd ¶
func ListFilesCmd ¶
func NextLogcatLineCmd ¶
func NextLogcatLineCmd(s *LogcatSession) tea.Cmd
func PairWirelessCmd ¶
func ParseLines ¶
func PullFileCmd ¶
func PushFileCmd ¶
func RebootBootloaderCmd ¶
func RebootRecoveryCmd ¶
func StartLogcatCmd ¶
func StartScrcpyCmd ¶
func ToggleScreenCmd ¶
func ToggleWifiCmd ¶
func UninstallAppCmd ¶
Types ¶
type AppActionErrorMsg ¶
type AppActionResultMsg ¶
type AppActionResultMsg struct {
Action string
}
type AppsLoadErrorMsg ¶
type AppsLoadErrorMsg struct {
Error error
}
type AppsLoadedMsg ¶
type AppsLoadedMsg struct {
Apps []App
}
type DeviceActionErrorMsg ¶
type DeviceActionResultMsg ¶
type DeviceActionResultMsg struct {
Action string
}
type DeviceDetails ¶
type DeviceDetailsMsg ¶
type DeviceDetailsMsg struct {
Details DeviceDetails
Error error
}
type DevicesLoadedMsg ¶
type FileActionResultMsg ¶
type FilesLoadedMsg ¶
type LogcatErrorMsg ¶
type LogcatErrorMsg struct {
Error error
}
type LogcatLineMsg ¶
type LogcatLineMsg struct {
Line string
}
type LogcatSession ¶
type LogcatSession struct {
// contains filtered or unexported fields
}
type LogcatStartedMsg ¶
type LogcatStartedMsg struct {
Session *LogcatSession
}
type LogcatStoppedMsg ¶
type LogcatStoppedMsg struct{}
type PairWirelessResultMsg ¶
type PairWirelessResultMsg struct {
Error error
}
type SystemStats ¶
type SystemStats struct {
// CPU counters (jiffies)
CPUTotal uint64
CPUIdle uint64
// Memory info (kB)
MemTotal uint64
MemUsed uint64 // Total - Available
MemAvailable uint64 // MemFree + Buffers + Cached (approx)
// Network counters (bytes) - usually for wlan0 or total
NetRxBytes uint64
NetTxBytes uint64
}
SystemStats holds raw counters from /proc files. The UI layer is responsible for calculating rates/percentages by comparing with previous samples.
type SystemStatsMsg ¶
type SystemStatsMsg struct {
Stats SystemStats
Error error
}
Click to show internal directories.
Click to hide internal directories.