webinspector

package
v1.3.18 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

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

This section is empty.

Variables

This section is empty.

Functions

func InitWebInspectorServer

func InitWebInspectorServer(udid string, port int, isProtocolDebug bool, isDTXDebug bool) context.CancelFunc

func PageDebugHandle

func PageDebugHandle(c *gin.Context)

func PagesHandle

func PagesHandle(c *gin.Context)

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 (r *RPCService) SendForwardDidClose(connectionID *string, appID *string, pageID int, senderID *string) error

func (*RPCService) SendForwardGetListing

func (r *RPCService) SendForwardGetListing(connectionID *string, appID *string) error

func (*RPCService) SendForwardIndicateWebView

func (r *RPCService) SendForwardIndicateWebView(connectionID *string, appID *string, pageID int, isEnabled bool) error

func (*RPCService) SendForwardSocketData

func (r *RPCService) SendForwardSocketData(connectionID *string, appID *string, pageID int, senderID *string, data []byte) error

func (*RPCService) SendForwardSocketSetup

func (r *RPCService) SendForwardSocketSetup(connectionID *string, appID *string, pageID int, senderID *string, pause bool) error

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 NewWebkitDebugService(device *giDevice.Device, ctx context.Context, version string) *WebkitDebugService

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)

func (*WebkitDebugService) StartCDP

func (w *WebkitDebugService) StartCDP(appID *string, pageID *int, conn *websocket.Conn, isAdapter bool) error

Jump to

Keyboard shortcuts

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