Documentation ¶
Overview ¶
GO render IPC通道
Index ¶
- Constants
- func CheckEmitCallback(id int32) *callback.Callback
- func CheckOnEvent(name string) *callback.Callback
- func Emit(name string, argument ...any)
- func EmitAndCallback(name string, argument []any, fn any)
- func EmitTarget(name string, tag target.ITarget, argument ...any)
- func EmitTargetAndCallback(name string, tag target.ITarget, argument []any, fn any)
- func On(name string, fn any, options ...types.OnOptions)
- func RemoveOn(name string)
- func SetProcessMessage(pm types.IProcessMessage)
- type EmitContextCallback
- type IBrowserIPCChan
- type IRenderIPCChan
- type SyncChan
Constants ¶
View Source
const ( InternalIPCGoExecuteGoEvent = "GoEmitGo" InternalIPCGoExecuteJSEventReplay = "GoEmitGoReplay" )
Variables ¶
This section is empty.
Functions ¶
func CheckEmitCallback ¶
CheckEmitCallback
IPC checks if the GO Emit callback function exists returns the function and removes it
func CheckOnEvent ¶
CheckOnEvent
IPC checks if the event listening in GO exists returns the function and removes it
func EmitAndCallback ¶
EmitAndCallback
Event that triggers listening with callback function default to the main process
func EmitTargetAndCallback ¶
EmitTargetAndCallback
Trigger an event with a callback function for the specified target to listen on
func SetProcessMessage ¶
func SetProcessMessage(pm types.IProcessMessage)
SetProcessMessage
Set the process message object without manually calling it
Types ¶
type EmitContextCallback ¶
EmitContextCallback IPC context Callback Function
type IBrowserIPCChan ¶
type IBrowserIPCChan interface { IPC() channel.IBrowserChannel AddCallback(callback func(channelId int64, argument argument.IList) bool) }
func BrowserChan ¶
func BrowserChan() IBrowserIPCChan
func CreateBrowserIPC ¶
func CreateBrowserIPC() IBrowserIPCChan
CreateBrowserIPC
Main process IPC creation
type IRenderIPCChan ¶
type IRenderIPCChan interface { IPC() channel.IRenderChannel SetRealityChannel(browserId int32, channelId int64) AddCallback(callback func(channelId int64, argumentList argument.IList) bool) BrowserId() int32 ChannelId() int64 }
func CreateRenderIPC ¶
func CreateRenderIPC(browserId int32, channelId int64) IRenderIPCChan
CreateRenderIPC Rendering process IPC creation
func RenderChan ¶
func RenderChan() IRenderIPCChan
type SyncChan ¶
type SyncChan struct { ResultSyncChan chan any //receive synchronization chan, default nil // contains filtered or unexported fields }
SyncChan
IPC synchronous receiving data channel
func (*SyncChan) DelayWaiting ¶
func (m *SyncChan) DelayWaiting()
DelayWaiting
Synchronous message, delay, default 5000 milliseconds
Click to show internal directories.
Click to hide internal directories.