Documentation ¶
Overview ¶
* sonic-ios-bridge Connect to your iOS Devices. * Copyright (C) 2022 SonicCloudOrg * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.
* sonic-ios-bridge Connect to your iOS Devices. * Copyright (C) 2022 SonicCloudOrg * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.
* sonic-ios-bridge Connect to your iOS Devices. * Copyright (C) 2022 SonicCloudOrg * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.
Index ¶
- Constants
- func CheckMount(device giDevice.Device)
- func CheckRemoteConnect(ip string, port int, timeout int) (dev giDevice.Device, version interface{}, err error)
- func Format(d ResultData, isFormat, isJson bool) string
- func GetApplicationPID(device giDevice.Device, appName string) (pid int, err error)
- func GetDeviceByUdId(udId string) (device giDevice.Device)
- func GetDeviceVersion(device giDevice.Device) string
- func InitLogger(strIntLevel string)
- func NewErrorPrint(t string, msg string, err error) error
- func ReadRemote() (remoteDevList map[string]giDevice.Device, err error)
- func SetLogLevel(strIntLevel string)
- func StartProxy() func(listener net.Listener, port int, device giDevice.Device)
- func UsbmuxListen(...) (func(), error)
- type LogrusWriter
- type ResultData
Constants ¶
const ( DownLoadTimeOut = 30 * time.Second RemoteInfoFilePath = baseDir + string(filepath.Separator) + "connect.txt" )
const ( ErrConnect = "failed connecting to" ErrReadingMsg = "failed reading msg" ErrSendCommand = "failed send the command" ErrMissingArgs = "missing arg(s)" ErrUnknown = "unknown error" MountTips = "you can use [sib mount] command to fix it and retry" )
Variables ¶
This section is empty.
Functions ¶
func CheckMount ¶ added in v1.0.3
func CheckRemoteConnect ¶ added in v1.3.0
func Format ¶
func Format(d ResultData, isFormat, isJson bool) string
func GetApplicationPID ¶ added in v1.1.9
func GetDeviceByUdId ¶ added in v1.0.7
func GetDeviceVersion ¶ added in v1.2.1
func InitLogger ¶ added in v1.3.16
func InitLogger(strIntLevel string)
func ReadRemote ¶ added in v1.3.0
func SetLogLevel ¶ added in v1.3.18
func SetLogLevel(strIntLevel string)
func StartProxy ¶ added in v1.3.0
Types ¶
type LogrusWriter ¶ added in v1.3.18
type LogrusWriter int
********* work around to this problem ********* https://github.com/google/gousb/issues/87#issuecomment-1100956460