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 ¶
- func InitWebInspectorServer(udid string, port int, isProtocolDebug bool, isDTXDebug bool) context.CancelFunc
- func PageDebugHandle(c *gin.Context)
- func PagesHandle(c *gin.Context)
- func SetIsAdapter(flag bool)
- func SetProtocolDebug(flag bool)
- type RPCService
- func (r *RPCService) ReceiveAndProcess() error
- func (r *RPCService) ReceiveApplicationConnected(arg entity.WIRArgument) error
- func (r *RPCService) ReceiveApplicationDisconnected(arg entity.WIRArgument) error
- func (r *RPCService) ReceiveApplicationSentData(arg entity.WIRArgument) error
- func (r *RPCService) ReceiveApplicationSentListing(arg entity.WIRArgument) error
- func (r *RPCService) ReceiveApplicationUpdated(arg entity.WIRArgument) error
- func (r *RPCService) ReceiveReportConnectedApplicationList(arg entity.WIRArgument) error
- func (r *RPCService) ReceiveReportCurrentState(arg entity.WIRArgument) (entity.AutomationAvailabilityType, error)
- func (r *RPCService) SendForwardDidClose(connectionID *string, appID *string, pageID int, senderID *string) error
- func (r *RPCService) SendForwardGetListing(connectionID *string, appID *string) error
- func (r *RPCService) SendForwardIndicateWebView(connectionID *string, appID *string, pageID int, isEnabled bool) error
- func (r *RPCService) SendForwardSocketData(connectionID *string, appID *string, pageID int, senderID *string, data []byte) error
- func (r *RPCService) SendForwardSocketSetup(connectionID *string, appID *string, pageID int, senderID *string, pause bool) error
- func (r *RPCService) SendGetConnectedApplications(connectionID *string) error
- func (r *RPCService) SendReportIdentifier(connectionID *string) error
- type WebkitDebugService
- func (w *WebkitDebugService) Close()
- func (w *WebkitDebugService) ConnectInspector() (context.CancelFunc, error)
- func (w *WebkitDebugService) FindPagesByID(pageId string) (application *entity.WebInspectorApplication, page *entity.WebInspectorPage, ...)
- func (w *WebkitDebugService) GetOpenPages(port int) ([]entity.BundleItem, error)
- func (w *WebkitDebugService) StartCDP(appID *string, pageID *int, conn *websocket.Conn, isAdapter bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWebInspectorServer ¶
func PageDebugHandle ¶
func PagesHandle ¶
func SetIsAdapter ¶
func SetIsAdapter(flag bool)
func SetProtocolDebug ¶
func SetProtocolDebug(flag bool)
Types ¶
type RPCService ¶
type RPCService struct { ConnectedApplication map[string]*entity.WebInspectorApplication ApplicationPages map[string]map[string]*entity.WebInspectorPage WirEvent chan []byte // contains filtered or unexported fields }
func NewRPCServer ¶
func NewRPCServer(inspector giDevice.WebInspector) *RPCService
func (*RPCService) ReceiveAndProcess ¶
func (r *RPCService) ReceiveAndProcess() error
func (*RPCService) ReceiveApplicationConnected ¶
func (r *RPCService) ReceiveApplicationConnected(arg entity.WIRArgument) error
ON_APP_CONNECTED
func (*RPCService) ReceiveApplicationDisconnected ¶
func (r *RPCService) ReceiveApplicationDisconnected(arg entity.WIRArgument) error
ON_APP_DISCONNECTED
func (*RPCService) ReceiveApplicationSentData ¶
func (r *RPCService) ReceiveApplicationSentData(arg entity.WIRArgument) error
ON_APP_SENT_DATA
func (*RPCService) ReceiveApplicationSentListing ¶
func (r *RPCService) ReceiveApplicationSentListing(arg entity.WIRArgument) error
ON_APP_SENT_LISTING
func (*RPCService) ReceiveApplicationUpdated ¶
func (r *RPCService) ReceiveApplicationUpdated(arg entity.WIRArgument) error
ON_APP_UPDATED
func (*RPCService) ReceiveReportConnectedApplicationList ¶
func (r *RPCService) ReceiveReportConnectedApplicationList(arg entity.WIRArgument) error
ON_REPORT_CONNECTED_APP_LIST
func (*RPCService) ReceiveReportCurrentState ¶
func (r *RPCService) ReceiveReportCurrentState(arg entity.WIRArgument) (entity.AutomationAvailabilityType, error)
ON_REPORT_CURRENT_STATE
func (*RPCService) SendForwardDidClose ¶
func (*RPCService) SendForwardGetListing ¶
func (r *RPCService) SendForwardGetListing(connectionID *string, appID *string) error
func (*RPCService) SendForwardIndicateWebView ¶
func (*RPCService) SendForwardSocketData ¶
func (*RPCService) SendForwardSocketSetup ¶
func (*RPCService) SendGetConnectedApplications ¶
func (r *RPCService) SendGetConnectedApplications(connectionID *string) error
func (*RPCService) SendReportIdentifier ¶
func (r *RPCService) SendReportIdentifier(connectionID *string) error
type WebkitDebugService ¶
type WebkitDebugService struct {
// contains filtered or unexported fields
}
func NewWebkitDebugService ¶
func (*WebkitDebugService) Close ¶
func (w *WebkitDebugService) Close()
func (*WebkitDebugService) ConnectInspector ¶
func (w *WebkitDebugService) ConnectInspector() (context.CancelFunc, error)
func (*WebkitDebugService) FindPagesByID ¶
func (w *WebkitDebugService) FindPagesByID(pageId string) (application *entity.WebInspectorApplication, page *entity.WebInspectorPage, err error)
func (*WebkitDebugService) GetOpenPages ¶
func (w *WebkitDebugService) GetOpenPages(port int) ([]entity.BundleItem, error)