Documentation ¶
Overview ¶
* Copyright (C) [SonicCloudOrg] Sonic Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
* Copyright (C) [SonicCloudOrg] Sonic Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
* Copyright (C) [SonicCloudOrg] Sonic Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
* Copyright (C) [SonicCloudOrg] Sonic Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
* Copyright (C) [SonicCloudOrg] Sonic Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
* Copyright (C) [SonicCloudOrg] Sonic Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
Index ¶
- Variables
- func ReplaceMethodNameAndOutputBinary(message []byte, method string) []byte
- type Adapter
- func (a *Adapter) AddToolMessageFilter(method string, filter MessageAdapters)
- func (a *Adapter) AddWebkitMessageFilter(method string, filter MessageAdapters)
- func (a *Adapter) CallTarget(method string, params interface{}, callFunc func(message []byte))
- func (a *Adapter) Connect(wsPath string, toolWs *websocket.Conn)
- func (a *Adapter) FireEventToTools(method string, params interface{})
- func (a *Adapter) FireResultToTools(id int, params interface{})
- func (a *Adapter) ReceiveMessageDevTool(message []byte)
- func (a *Adapter) ReceiveMessageWebkit(message []byte)
- func (a *Adapter) ReplyWithEmpty(msg string) []byte
- func (a *Adapter) SendMessageDevTool(message []byte)
- func (a *Adapter) SendMessageWebkit(message []byte)
- func (a *Adapter) SetIsConnect(flag bool)
- func (a *Adapter) SetReceiveDevTool(receiveDevTool func([]byte))
- func (a *Adapter) SetReceiveWebkit(receiveWebkit func([]byte))
- func (a *Adapter) SetSendDevTool(sendDevTool func([]byte))
- func (a *Adapter) SetSendWebkit(sendWebkit func([]byte))
- func (a *Adapter) SetTargetBased(flag bool)
- func (a *Adapter) SetTargetID(targetID string)
- type MessageAdapters
- type ScreencastOptFunc
Constants ¶
This section is empty.
Variables ¶
var BEGIN_COMMENT = "/* "
var END_COMMENT = " */"
var SEPARATOR = ": "
Functions ¶
func ReplaceMethodNameAndOutputBinary ¶ added in v0.0.5
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewAdapter ¶ added in v0.0.3
func (*Adapter) AddToolMessageFilter ¶ added in v0.0.7
func (a *Adapter) AddToolMessageFilter(method string, filter MessageAdapters)
func (*Adapter) AddWebkitMessageFilter ¶ added in v0.0.7
func (a *Adapter) AddWebkitMessageFilter(method string, filter MessageAdapters)
func (*Adapter) CallTarget ¶
func (*Adapter) FireEventToTools ¶
func (*Adapter) FireResultToTools ¶
func (*Adapter) ReceiveMessageDevTool ¶ added in v0.0.4
func (*Adapter) ReceiveMessageWebkit ¶ added in v0.0.4
func (*Adapter) ReplyWithEmpty ¶
func (*Adapter) SendMessageDevTool ¶ added in v0.0.4
func (*Adapter) SendMessageWebkit ¶ added in v0.0.4
func (*Adapter) SetIsConnect ¶ added in v0.0.7
func (*Adapter) SetReceiveDevTool ¶
func (*Adapter) SetReceiveWebkit ¶
func (*Adapter) SetSendDevTool ¶
func (*Adapter) SetSendWebkit ¶
func (*Adapter) SetTargetBased ¶
func (*Adapter) SetTargetID ¶
type MessageAdapters ¶
type ScreencastOptFunc ¶ added in v0.0.5
type ScreencastOptFunc func(screencast *screencastSession)
func WithFormat ¶ added in v0.0.5
func WithFormat(format string) ScreencastOptFunc
func WithMaxHeight ¶ added in v0.0.5
func WithMaxHeight(maxHeight int) ScreencastOptFunc
func WithMaxWidth ¶ added in v0.0.5
func WithMaxWidth(maxWidth int) ScreencastOptFunc
func WithQuality ¶ added in v0.0.5
func WithQuality(quality int) ScreencastOptFunc