types

package
v1.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientAddr

type ClientAddr struct {
	Serial
	IP   net.IP
	Port int
}

func NewClientAddress

func NewClientAddress(addr *string) (*ClientAddr, error)

func (ClientAddr) GetSerialAddress added in v0.0.2

func (c ClientAddr) GetSerialAddress() string

func (ClientAddr) String

func (c ClientAddr) String() string

func (ClientAddr) ToString

func (c ClientAddr) ToString() string

type DefaultDeviceFileParser added in v1.0.18

type DefaultDeviceFileParser struct{}

func (DefaultDeviceFileParser) Parse added in v1.0.18

func (d DefaultDeviceFileParser) Parse(parent string, line string, name string) (DeviceFile, error)

type Device

type Device struct {
	Serial
	Addr      ClientAddr
	Product   []byte
	Model     []byte
	Device    []byte
	Transport []byte
}

func NewDevice

func NewDevice(addr *string) (*Device, error)

func (Device) GetSerialAddress added in v0.0.2

func (m Device) GetSerialAddress() string

func (Device) String

func (m Device) String() string

type DeviceFile added in v0.0.6

type DeviceFile struct {
	Line        string
	Permissions string
	LinkCount   string
	Owner       string
	Group       string
	Size        string
	DateTime    time.Time
	Name        string
	Parent      string
}

func (DeviceFile) Abs added in v1.0.16

func (d DeviceFile) Abs() string

func (DeviceFile) IsDir added in v0.0.6

func (d DeviceFile) IsDir() bool
func (d DeviceFile) IsSymlink() bool

func (DeviceFile) String added in v0.0.6

func (d DeviceFile) String() string
func (d DeviceFile) Symlink() string

type DeviceFileParser added in v1.0.18

type DeviceFileParser interface {
	Parse(string, string, string) (*DeviceFile, error)
}

type DumpSysSection added in v1.0.22

type DumpSysSection struct {
	Title string
	Lines []string
}

type DumpsysParser added in v1.0.22

type DumpsysParser struct {
	Lines []string
}

func (DumpsysParser) FindSection added in v1.0.22

func (b DumpsysParser) FindSection(title string) *DumpSysSection

func (DumpsysParser) FindSections added in v1.0.22

func (b DumpsysParser) FindSections() []string

type Extras

type Extras struct {
	Es                      map[string]string
	Ez                      map[string]bool
	Ei                      map[string]int
	El                      map[string]int64
	Ef                      map[string]float32
	Eu                      map[string]string
	Ecn                     map[string]string
	Eia                     map[string][]int
	Ela                     map[string][]int64
	Efa                     map[string][]float32
	Esa                     map[string][]string
	GrantReadUriPermission  bool
	GrantWriteUriPermission bool
	ExcludeStoppedPackages  bool
	IncludeStoppedPackages  bool
}

func (Extras) String

func (e Extras) String() string

type Intent

type Intent struct {
	Action             string
	Data               string
	MimeType           string
	Category           string
	Component          string
	Package            string
	ReceiverForeground bool
	Flags              int32
	Extra              Extras
	UserId             UserId
	Wait               bool
}

func NewIntent

func NewIntent() *Intent

func (Intent) String

func (i Intent) String() string

type IntentBuilder

type IntentBuilder struct {
	Intent *Intent
}

type LogcatLevel added in v0.0.5

type LogcatLevel string
const (
	LogcatVerbose LogcatLevel = "V"
	LogcatDebug   LogcatLevel = "D"
	LogcatInfo    LogcatLevel = "I"
	LogcatWarn    LogcatLevel = "W"
	LogcatError   LogcatLevel = "E"
)

type LogcatOptions added in v0.0.5

type LogcatOptions struct {
	// -e Only prints lines where the log message matches <expr>, where <expr> is a regular expression.
	Expr string
	// -d	Dumps the log to the screen and exits.
	Dump bool
	// -f <filename>	Writes log message output to <filename>. The default is stdout.
	Filename string
	// redirect the output to this file instead of the default output
	File *os.File
	// -s	Equivalent to the filter expression '*:S', which sets priority for all tags to silent and is used to precede a list of filter expressions that add content.
	Tags []LogcatTag
	// -v <format>	Sets the output format for log messages. The default is the threadtime format
	Format string
	// -t '<time>'	Prints the most recent lines since the specified time. This option includes -d functionality. See the -P option for information about quoting parameters with embedded spaces.
	Since *time.Time
	// --pid=<pid> ...
	Pids []string

	Timeout time.Duration
}

func NewLogcatOptions added in v0.0.5

func NewLogcatOptions() LogcatOptions

type LogcatTag added in v0.0.5

type LogcatTag struct {
	Name  string
	Level LogcatLevel
}

func (LogcatTag) String added in v0.0.5

func (l LogcatTag) String() string

type MdnsDevice

type MdnsDevice struct {
	ScannerDevice

	ConnectionType string
	// contains filtered or unexported fields
}

func NewMdnsDevice

func NewMdnsDevice(name *string, ctype string, addr *string) (*MdnsDevice, error)

func (MdnsDevice) Address

func (m MdnsDevice) Address() ClientAddr

func (MdnsDevice) GetSerialAddress added in v0.0.2

func (m MdnsDevice) GetSerialAddress() string

func (MdnsDevice) MacAddress added in v1.1.2

func (m MdnsDevice) MacAddress() *net.HardwareAddr

func (MdnsDevice) Name

func (m MdnsDevice) Name() *string

func (MdnsDevice) String

func (m MdnsDevice) String() string

type PackagePermission

type PackagePermission struct {
	Permission
	Granted bool
	Flags   []string
}

func (PackagePermission) String

func (r PackagePermission) String() string

type Pair

type Pair[K interface{}, V interface{}] struct {
	First  K
	Second V
}

type Permission

type Permission struct {
	Name string
}

type ReconnectType added in v1.0.29

type ReconnectType string

type RequestedPermission

type RequestedPermission struct {
	Permission
}

func (RequestedPermission) String

func (r RequestedPermission) String() string

type ScannerDevice added in v1.1.1

type ScannerDevice interface {
	Name() *string
	GetSerialAddress() string
	Address() ClientAddr
	String() string
	MacAddress() *net.HardwareAddr
}

type Serial

type Serial interface {
	GetSerialAddress() string
	String() string
}

type SettingsNamespace added in v1.0.5

type SettingsNamespace string
const (
	SettingsGlobal SettingsNamespace = "global"
	SettingsSystem SettingsNamespace = "system"
	SettingsSecure SettingsNamespace = "secure"

	ReconnectToDevice  = "device"
	ReconnectToOffline = "offline"
)

type Size added in v0.0.6

type Size struct {
	Width  uint
	Height uint
}

func (Size) String added in v0.0.6

func (s Size) String() string

type StatDeviceFileParser added in v1.0.18

type StatDeviceFileParser struct{}

func (StatDeviceFileParser) Parse added in v1.0.18

func (d StatDeviceFileParser) Parse(parent string, line string, name string) (DeviceFile, error)

type TcpDevice added in v1.1.0

type TcpDevice struct {
	ScannerDevice
	// contains filtered or unexported fields
}

func NewTcpDevice added in v1.1.0

func NewTcpDevice(name *string, macAddress *net.HardwareAddr, addr *string) (*TcpDevice, error)

func (TcpDevice) Address added in v1.1.0

func (m TcpDevice) Address() ClientAddr

func (TcpDevice) GetSerialAddress added in v1.1.0

func (m TcpDevice) GetSerialAddress() string

func (TcpDevice) MacAddress added in v1.1.2

func (m TcpDevice) MacAddress() *net.HardwareAddr

func (TcpDevice) Name added in v1.1.0

func (m TcpDevice) Name() *string

func (TcpDevice) String added in v1.1.0

func (m TcpDevice) String() string

type UserId

type UserId string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL