target

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITarget

type ITarget interface {
	BrowserId() int32 // Browser Window ID
	ChannelId() int64 // IPC channelID, frameId or GO IPC channelID
	TargetType() Type // Target type default 0: Trigger JS event
}

ITarget

ipc.NewTarget() *Target

func NewTarget

func NewTarget(browserId int32, channelId int64, targetType ...Type) ITarget

NewTarget Create a new Emit target

browserId: browser window ID
channelId: IPC channelID, frameId or GO IPC channelID
targetType: Optional parameter, target type default 0
  Type: TgJs:JS Event, TgGo:GO Event

type Target

type Target struct {
	// contains filtered or unexported fields
}

Target Go IPC

receiving target of the event

func (*Target) BrowserId

func (m *Target) BrowserId() int32

BrowserId

return BrowserId

func (*Target) ChannelId

func (m *Target) ChannelId() int64

ChannelId

return ChannelId

func (*Target) TargetType

func (m *Target) TargetType() Type

TargetType

target type
0: Trigger JS event
1: Trigger Go Event

type Type

type Type int8

Type

0: Trigger the JS event of the specified target process
1: Trigger GO events for the specified target process
const (
	TgJs Type = iota //JS Event
	TgGo             //GO Event
)

Jump to

Keyboard shortcuts

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