context

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

Context IPC Event context

func (*Context) ArgumentList

func (m *Context) ArgumentList() json.JSONArray

ArgumentList Argument List JSONArray

func (*Context) BrowserId

func (m *Context) BrowserId() int32

func (*Context) FrameId

func (m *Context) FrameId() int64

func (*Context) Replay

func (m *Context) Replay() IReplay

func (*Context) Result

func (m *Context) Result(data ...interface{})

type IContext

type IContext interface {
	ArgumentList() json.JSONArray //ArgumentList
	BrowserId() int32             //Event ownership: browser id
	FrameId() int64               //Event ownership: frame id
	Replay() IReplay              //Replay, When the trigger event returns IContext, this field is nil
	Result(data ...interface{})   //callback function return Result
}

IContext

Inter process IPC communication callback context

func NewContext

func NewContext(browserId int32, frameId int64, isReplay bool, argument json.JSONArray) IContext

NewContext create IPC message Replay Context

type IReplay

type IReplay interface {
	Result() []interface{}
	SetResult(data []interface{})
	Clear()
}

IReplay IPC Replay Interface

type Replay

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

Replay IPC Replay

func (*Replay) Clear

func (m *Replay) Clear()

func (*Replay) Result

func (m *Replay) Result() []interface{}

func (*Replay) SetResult

func (m *Replay) SetResult(data []interface{})

Jump to

Keyboard shortcuts

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