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 NewErrorPrint(t string, msg string, err error) error
- func ReadRemote() (remoteDevList map[string]giDevice.Device, err error)
- func StartProxy() func(listener net.Listener, port int, device giDevice.Device)
- 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