Documentation
¶
Index ¶
- func FuncGetProcessIdForTab() (fn js.Func[func(tabId int32) js.Promise[js.Number[int32]]])
- func FuncGetProcessInfo() (...)
- func FuncHasOnCreated() (fn js.Func[func(callback js.Func[func(process *Process)]) bool])
- func FuncHasOnExited() (...)
- func FuncHasOnUnresponsive() (fn js.Func[func(callback js.Func[func(process *Process)]) bool])
- func FuncHasOnUpdated() (fn js.Func[func(callback js.Func[func(processes js.Object)]) bool])
- func FuncHasOnUpdatedWithMemory() (fn js.Func[func(callback js.Func[func(processes js.Object)]) bool])
- func FuncOffCreated() (fn js.Func[func(callback js.Func[func(process *Process)])])
- func FuncOffExited() (...)
- func FuncOffUnresponsive() (fn js.Func[func(callback js.Func[func(process *Process)])])
- func FuncOffUpdated() (fn js.Func[func(callback js.Func[func(processes js.Object)])])
- func FuncOffUpdatedWithMemory() (fn js.Func[func(callback js.Func[func(processes js.Object)])])
- func FuncOnCreated() (fn js.Func[func(callback js.Func[func(process *Process)])])
- func FuncOnExited() (...)
- func FuncOnUnresponsive() (fn js.Func[func(callback js.Func[func(process *Process)])])
- func FuncOnUpdated() (fn js.Func[func(callback js.Func[func(processes js.Object)])])
- func FuncOnUpdatedWithMemory() (fn js.Func[func(callback js.Func[func(processes js.Object)])])
- func FuncTerminate() (fn js.Func[func(processId int32) js.Promise[js.Boolean]])
- func GetProcessIdForTab(tabId int32) (ret js.Promise[js.Number[int32]])
- func GetProcessInfo(processIds OneOf_Int32_ArrayInt32, includeMemory bool) (ret js.Promise[js.Object])
- func HasFuncGetProcessIdForTab() bool
- func HasFuncGetProcessInfo() bool
- func HasFuncHasOnCreated() bool
- func HasFuncHasOnExited() bool
- func HasFuncHasOnUnresponsive() bool
- func HasFuncHasOnUpdated() bool
- func HasFuncHasOnUpdatedWithMemory() bool
- func HasFuncOffCreated() bool
- func HasFuncOffExited() bool
- func HasFuncOffUnresponsive() bool
- func HasFuncOffUpdated() bool
- func HasFuncOffUpdatedWithMemory() bool
- func HasFuncOnCreated() bool
- func HasFuncOnExited() bool
- func HasFuncOnUnresponsive() bool
- func HasFuncOnUpdated() bool
- func HasFuncOnUpdatedWithMemory() bool
- func HasFuncTerminate() bool
- func HasOnCreated(callback js.Func[func(process *Process)]) (ret bool)
- func HasOnExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret bool)
- func HasOnUnresponsive(callback js.Func[func(process *Process)]) (ret bool)
- func HasOnUpdated(callback js.Func[func(processes js.Object)]) (ret bool)
- func HasOnUpdatedWithMemory(callback js.Func[func(processes js.Object)]) (ret bool)
- func OffCreated(callback js.Func[func(process *Process)]) (ret js.Void)
- func OffExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret js.Void)
- func OffUnresponsive(callback js.Func[func(process *Process)]) (ret js.Void)
- func OffUpdated(callback js.Func[func(processes js.Object)]) (ret js.Void)
- func OffUpdatedWithMemory(callback js.Func[func(processes js.Object)]) (ret js.Void)
- func OnCreated(callback js.Func[func(process *Process)]) (ret js.Void)
- func OnExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret js.Void)
- func OnUnresponsive(callback js.Func[func(process *Process)]) (ret js.Void)
- func OnUpdated(callback js.Func[func(processes js.Object)]) (ret js.Void)
- func OnUpdatedWithMemory(callback js.Func[func(processes js.Object)]) (ret js.Void)
- func Terminate(processId int32) (ret js.Promise[js.Boolean])
- func TryGetProcessIdForTab(tabId int32) (ret js.Promise[js.Number[int32]], exception js.Any, ok bool)
- func TryGetProcessInfo(processIds OneOf_Int32_ArrayInt32, includeMemory bool) (ret js.Promise[js.Object], exception js.Any, ok bool)
- func TryHasOnCreated(callback js.Func[func(process *Process)]) (ret bool, exception js.Any, ok bool)
- func TryHasOnExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret bool, exception js.Any, ok bool)
- func TryHasOnUnresponsive(callback js.Func[func(process *Process)]) (ret bool, exception js.Any, ok bool)
- func TryHasOnUpdated(callback js.Func[func(processes js.Object)]) (ret bool, exception js.Any, ok bool)
- func TryHasOnUpdatedWithMemory(callback js.Func[func(processes js.Object)]) (ret bool, exception js.Any, ok bool)
- func TryOffCreated(callback js.Func[func(process *Process)]) (ret js.Void, exception js.Any, ok bool)
- func TryOffExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret js.Void, exception js.Any, ok bool)
- func TryOffUnresponsive(callback js.Func[func(process *Process)]) (ret js.Void, exception js.Any, ok bool)
- func TryOffUpdated(callback js.Func[func(processes js.Object)]) (ret js.Void, exception js.Any, ok bool)
- func TryOffUpdatedWithMemory(callback js.Func[func(processes js.Object)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnCreated(callback js.Func[func(process *Process)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnUnresponsive(callback js.Func[func(process *Process)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnUpdated(callback js.Func[func(processes js.Object)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnUpdatedWithMemory(callback js.Func[func(processes js.Object)]) (ret js.Void, exception js.Any, ok bool)
- func TryTerminate(processId int32) (ret js.Promise[js.Boolean], exception js.Any, ok bool)
- type Cache
- type GetProcessIdForTabCallback
- type GetProcessIdForTabCallbackFunc
- type GetProcessInfoCallback
- type GetProcessInfoCallbackFunc
- type OnCreatedEventCallback
- type OnCreatedEventCallbackFunc
- type OnExitedEventCallback
- type OnExitedEventCallbackFunc
- type OnUnresponsiveEventCallback
- type OnUnresponsiveEventCallbackFunc
- type OnUpdatedEventCallback
- type OnUpdatedEventCallbackFunc
- type OnUpdatedWithMemoryEventCallback
- type OnUpdatedWithMemoryEventCallbackFunc
- type OneOf_Int32_ArrayInt32
- type Process
- type ProcessType
- type TaskInfo
- type TerminateCallback
- type TerminateCallbackFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncGetProcessIdForTab ¶
FuncGetProcessIdForTab returns the function "WEBEXT.processes.getProcessIdForTab".
func FuncGetProcessInfo ¶
func FuncGetProcessInfo() (fn js.Func[func(processIds OneOf_Int32_ArrayInt32, includeMemory bool) js.Promise[js.Object]])
FuncGetProcessInfo returns the function "WEBEXT.processes.getProcessInfo".
func FuncHasOnCreated ¶
FuncHasOnCreated returns the function "WEBEXT.processes.onCreated.hasListener".
func FuncHasOnExited ¶
func FuncHasOnExited() (fn js.Func[func(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) bool])
FuncHasOnExited returns the function "WEBEXT.processes.onExited.hasListener".
func FuncHasOnUnresponsive ¶
FuncHasOnUnresponsive returns the function "WEBEXT.processes.onUnresponsive.hasListener".
func FuncHasOnUpdated ¶
FuncHasOnUpdated returns the function "WEBEXT.processes.onUpdated.hasListener".
func FuncHasOnUpdatedWithMemory ¶
func FuncHasOnUpdatedWithMemory() (fn js.Func[func(callback js.Func[func(processes js.Object)]) bool])
FuncHasOnUpdatedWithMemory returns the function "WEBEXT.processes.onUpdatedWithMemory.hasListener".
func FuncOffCreated ¶
FuncOffCreated returns the function "WEBEXT.processes.onCreated.removeListener".
func FuncOffExited ¶
func FuncOffExited() (fn js.Func[func(callback js.Func[func(processId int32, exitType int32, exitCode int32)])])
FuncOffExited returns the function "WEBEXT.processes.onExited.removeListener".
func FuncOffUnresponsive ¶
FuncOffUnresponsive returns the function "WEBEXT.processes.onUnresponsive.removeListener".
func FuncOffUpdated ¶
FuncOffUpdated returns the function "WEBEXT.processes.onUpdated.removeListener".
func FuncOffUpdatedWithMemory ¶
FuncOffUpdatedWithMemory returns the function "WEBEXT.processes.onUpdatedWithMemory.removeListener".
func FuncOnCreated ¶
FuncOnCreated returns the function "WEBEXT.processes.onCreated.addListener".
func FuncOnExited ¶
func FuncOnExited() (fn js.Func[func(callback js.Func[func(processId int32, exitType int32, exitCode int32)])])
FuncOnExited returns the function "WEBEXT.processes.onExited.addListener".
func FuncOnUnresponsive ¶
FuncOnUnresponsive returns the function "WEBEXT.processes.onUnresponsive.addListener".
func FuncOnUpdated ¶
FuncOnUpdated returns the function "WEBEXT.processes.onUpdated.addListener".
func FuncOnUpdatedWithMemory ¶
FuncOnUpdatedWithMemory returns the function "WEBEXT.processes.onUpdatedWithMemory.addListener".
func FuncTerminate ¶
FuncTerminate returns the function "WEBEXT.processes.terminate".
func GetProcessIdForTab ¶
GetProcessIdForTab calls the function "WEBEXT.processes.getProcessIdForTab" directly.
func GetProcessInfo ¶
func GetProcessInfo(processIds OneOf_Int32_ArrayInt32, includeMemory bool) (ret js.Promise[js.Object])
GetProcessInfo calls the function "WEBEXT.processes.getProcessInfo" directly.
func HasFuncGetProcessIdForTab ¶
func HasFuncGetProcessIdForTab() bool
HasFuncGetProcessIdForTab returns true if the function "WEBEXT.processes.getProcessIdForTab" exists.
func HasFuncGetProcessInfo ¶
func HasFuncGetProcessInfo() bool
HasFuncGetProcessInfo returns true if the function "WEBEXT.processes.getProcessInfo" exists.
func HasFuncHasOnCreated ¶
func HasFuncHasOnCreated() bool
HasFuncHasOnCreated returns true if the function "WEBEXT.processes.onCreated.hasListener" exists.
func HasFuncHasOnExited ¶
func HasFuncHasOnExited() bool
HasFuncHasOnExited returns true if the function "WEBEXT.processes.onExited.hasListener" exists.
func HasFuncHasOnUnresponsive ¶
func HasFuncHasOnUnresponsive() bool
HasFuncHasOnUnresponsive returns true if the function "WEBEXT.processes.onUnresponsive.hasListener" exists.
func HasFuncHasOnUpdated ¶
func HasFuncHasOnUpdated() bool
HasFuncHasOnUpdated returns true if the function "WEBEXT.processes.onUpdated.hasListener" exists.
func HasFuncHasOnUpdatedWithMemory ¶
func HasFuncHasOnUpdatedWithMemory() bool
HasFuncHasOnUpdatedWithMemory returns true if the function "WEBEXT.processes.onUpdatedWithMemory.hasListener" exists.
func HasFuncOffCreated ¶
func HasFuncOffCreated() bool
HasFuncOffCreated returns true if the function "WEBEXT.processes.onCreated.removeListener" exists.
func HasFuncOffExited ¶
func HasFuncOffExited() bool
HasFuncOffExited returns true if the function "WEBEXT.processes.onExited.removeListener" exists.
func HasFuncOffUnresponsive ¶
func HasFuncOffUnresponsive() bool
HasFuncOffUnresponsive returns true if the function "WEBEXT.processes.onUnresponsive.removeListener" exists.
func HasFuncOffUpdated ¶
func HasFuncOffUpdated() bool
HasFuncOffUpdated returns true if the function "WEBEXT.processes.onUpdated.removeListener" exists.
func HasFuncOffUpdatedWithMemory ¶
func HasFuncOffUpdatedWithMemory() bool
HasFuncOffUpdatedWithMemory returns true if the function "WEBEXT.processes.onUpdatedWithMemory.removeListener" exists.
func HasFuncOnCreated ¶
func HasFuncOnCreated() bool
HasFuncOnCreated returns true if the function "WEBEXT.processes.onCreated.addListener" exists.
func HasFuncOnExited ¶
func HasFuncOnExited() bool
HasFuncOnExited returns true if the function "WEBEXT.processes.onExited.addListener" exists.
func HasFuncOnUnresponsive ¶
func HasFuncOnUnresponsive() bool
HasFuncOnUnresponsive returns true if the function "WEBEXT.processes.onUnresponsive.addListener" exists.
func HasFuncOnUpdated ¶
func HasFuncOnUpdated() bool
HasFuncOnUpdated returns true if the function "WEBEXT.processes.onUpdated.addListener" exists.
func HasFuncOnUpdatedWithMemory ¶
func HasFuncOnUpdatedWithMemory() bool
HasFuncOnUpdatedWithMemory returns true if the function "WEBEXT.processes.onUpdatedWithMemory.addListener" exists.
func HasFuncTerminate ¶
func HasFuncTerminate() bool
HasFuncTerminate returns true if the function "WEBEXT.processes.terminate" exists.
func HasOnCreated ¶
HasOnCreated calls the function "WEBEXT.processes.onCreated.hasListener" directly.
func HasOnExited ¶
func HasOnExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret bool)
HasOnExited calls the function "WEBEXT.processes.onExited.hasListener" directly.
func HasOnUnresponsive ¶
HasOnUnresponsive calls the function "WEBEXT.processes.onUnresponsive.hasListener" directly.
func HasOnUpdated ¶
HasOnUpdated calls the function "WEBEXT.processes.onUpdated.hasListener" directly.
func HasOnUpdatedWithMemory ¶
HasOnUpdatedWithMemory calls the function "WEBEXT.processes.onUpdatedWithMemory.hasListener" directly.
func OffCreated ¶
OffCreated calls the function "WEBEXT.processes.onCreated.removeListener" directly.
func OffExited ¶
func OffExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret js.Void)
OffExited calls the function "WEBEXT.processes.onExited.removeListener" directly.
func OffUnresponsive ¶
OffUnresponsive calls the function "WEBEXT.processes.onUnresponsive.removeListener" directly.
func OffUpdated ¶
OffUpdated calls the function "WEBEXT.processes.onUpdated.removeListener" directly.
func OffUpdatedWithMemory ¶
OffUpdatedWithMemory calls the function "WEBEXT.processes.onUpdatedWithMemory.removeListener" directly.
func OnExited ¶
func OnExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret js.Void)
OnExited calls the function "WEBEXT.processes.onExited.addListener" directly.
func OnUnresponsive ¶
OnUnresponsive calls the function "WEBEXT.processes.onUnresponsive.addListener" directly.
func OnUpdatedWithMemory ¶
OnUpdatedWithMemory calls the function "WEBEXT.processes.onUpdatedWithMemory.addListener" directly.
func TryGetProcessIdForTab ¶
func TryGetProcessIdForTab(tabId int32) (ret js.Promise[js.Number[int32]], exception js.Any, ok bool)
TryGetProcessIdForTab calls the function "WEBEXT.processes.getProcessIdForTab" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryGetProcessInfo ¶
func TryGetProcessInfo(processIds OneOf_Int32_ArrayInt32, includeMemory bool) (ret js.Promise[js.Object], exception js.Any, ok bool)
TryGetProcessInfo calls the function "WEBEXT.processes.getProcessInfo" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnCreated ¶
func TryHasOnCreated(callback js.Func[func(process *Process)]) (ret bool, exception js.Any, ok bool)
TryHasOnCreated calls the function "WEBEXT.processes.onCreated.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnExited ¶
func TryHasOnExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret bool, exception js.Any, ok bool)
TryHasOnExited calls the function "WEBEXT.processes.onExited.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnUnresponsive ¶
func TryHasOnUnresponsive(callback js.Func[func(process *Process)]) (ret bool, exception js.Any, ok bool)
TryHasOnUnresponsive calls the function "WEBEXT.processes.onUnresponsive.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnUpdated ¶
func TryHasOnUpdated(callback js.Func[func(processes js.Object)]) (ret bool, exception js.Any, ok bool)
TryHasOnUpdated calls the function "WEBEXT.processes.onUpdated.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnUpdatedWithMemory ¶
func TryHasOnUpdatedWithMemory(callback js.Func[func(processes js.Object)]) (ret bool, exception js.Any, ok bool)
TryHasOnUpdatedWithMemory calls the function "WEBEXT.processes.onUpdatedWithMemory.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffCreated ¶
func TryOffCreated(callback js.Func[func(process *Process)]) (ret js.Void, exception js.Any, ok bool)
TryOffCreated calls the function "WEBEXT.processes.onCreated.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffExited ¶
func TryOffExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret js.Void, exception js.Any, ok bool)
TryOffExited calls the function "WEBEXT.processes.onExited.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffUnresponsive ¶
func TryOffUnresponsive(callback js.Func[func(process *Process)]) (ret js.Void, exception js.Any, ok bool)
TryOffUnresponsive calls the function "WEBEXT.processes.onUnresponsive.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffUpdated ¶
func TryOffUpdated(callback js.Func[func(processes js.Object)]) (ret js.Void, exception js.Any, ok bool)
TryOffUpdated calls the function "WEBEXT.processes.onUpdated.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffUpdatedWithMemory ¶
func TryOffUpdatedWithMemory(callback js.Func[func(processes js.Object)]) (ret js.Void, exception js.Any, ok bool)
TryOffUpdatedWithMemory calls the function "WEBEXT.processes.onUpdatedWithMemory.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnCreated ¶
func TryOnCreated(callback js.Func[func(process *Process)]) (ret js.Void, exception js.Any, ok bool)
TryOnCreated calls the function "WEBEXT.processes.onCreated.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnExited ¶
func TryOnExited(callback js.Func[func(processId int32, exitType int32, exitCode int32)]) (ret js.Void, exception js.Any, ok bool)
TryOnExited calls the function "WEBEXT.processes.onExited.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnUnresponsive ¶
func TryOnUnresponsive(callback js.Func[func(process *Process)]) (ret js.Void, exception js.Any, ok bool)
TryOnUnresponsive calls the function "WEBEXT.processes.onUnresponsive.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnUpdated ¶
func TryOnUpdated(callback js.Func[func(processes js.Object)]) (ret js.Void, exception js.Any, ok bool)
TryOnUpdated calls the function "WEBEXT.processes.onUpdated.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnUpdatedWithMemory ¶
func TryOnUpdatedWithMemory(callback js.Func[func(processes js.Object)]) (ret js.Void, exception js.Any, ok bool)
TryOnUpdatedWithMemory calls the function "WEBEXT.processes.onUpdatedWithMemory.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
Types ¶
type Cache ¶
type Cache struct {
// Size is "Cache.size"
//
// Optional
//
// NOTE: FFI_USE_Size MUST be set to true to make this field effective.
Size float64
// LiveSize is "Cache.liveSize"
//
// Optional
//
// NOTE: FFI_USE_LiveSize MUST be set to true to make this field effective.
LiveSize float64
FFI_USE_Size bool // for Size.
FFI_USE_LiveSize bool // for LiveSize.
FFI_USE bool
}
func (*Cache) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*Cache) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type GetProcessIdForTabCallback ¶
type GetProcessIdForTabCallback[T any] struct { Fn func(arg T, this js.Ref, processId int32) js.Ref Arg T }
func (*GetProcessIdForTabCallback[T]) DispatchCallback ¶
func (cb *GetProcessIdForTabCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type GetProcessIdForTabCallbackFunc ¶
func (GetProcessIdForTabCallbackFunc) DispatchCallback ¶
func (fn GetProcessIdForTabCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type GetProcessInfoCallback ¶
type GetProcessInfoCallback[T any] struct { Fn func(arg T, this js.Ref, processes js.Object) js.Ref Arg T }
func (*GetProcessInfoCallback[T]) DispatchCallback ¶
func (cb *GetProcessInfoCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type GetProcessInfoCallbackFunc ¶
func (GetProcessInfoCallbackFunc) DispatchCallback ¶
func (fn GetProcessInfoCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnCreatedEventCallback ¶
type OnCreatedEventCallback[T any] struct { Fn func(arg T, this js.Ref, process *Process) js.Ref Arg T }
func (*OnCreatedEventCallback[T]) DispatchCallback ¶
func (cb *OnCreatedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnCreatedEventCallbackFunc ¶
func (OnCreatedEventCallbackFunc) DispatchCallback ¶
func (fn OnCreatedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnExitedEventCallback ¶
type OnExitedEventCallback[T any] struct { Fn func(arg T, this js.Ref, processId int32, exitType int32, exitCode int32) js.Ref Arg T }
func (*OnExitedEventCallback[T]) DispatchCallback ¶
func (cb *OnExitedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnExitedEventCallbackFunc ¶
type OnExitedEventCallbackFunc func(this js.Ref, processId int32, exitType int32, exitCode int32) js.Ref
func (OnExitedEventCallbackFunc) DispatchCallback ¶
func (fn OnExitedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnUnresponsiveEventCallback ¶
type OnUnresponsiveEventCallback[T any] struct { Fn func(arg T, this js.Ref, process *Process) js.Ref Arg T }
func (*OnUnresponsiveEventCallback[T]) DispatchCallback ¶
func (cb *OnUnresponsiveEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnUnresponsiveEventCallbackFunc ¶
func (OnUnresponsiveEventCallbackFunc) DispatchCallback ¶
func (fn OnUnresponsiveEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnUpdatedEventCallback ¶
type OnUpdatedEventCallback[T any] struct { Fn func(arg T, this js.Ref, processes js.Object) js.Ref Arg T }
func (*OnUpdatedEventCallback[T]) DispatchCallback ¶
func (cb *OnUpdatedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnUpdatedEventCallbackFunc ¶
func (OnUpdatedEventCallbackFunc) DispatchCallback ¶
func (fn OnUpdatedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnUpdatedWithMemoryEventCallback ¶
type OnUpdatedWithMemoryEventCallback[T any] struct { Fn func(arg T, this js.Ref, processes js.Object) js.Ref Arg T }
func (*OnUpdatedWithMemoryEventCallback[T]) DispatchCallback ¶
func (cb *OnUpdatedWithMemoryEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnUpdatedWithMemoryEventCallbackFunc ¶
func (OnUpdatedWithMemoryEventCallbackFunc) DispatchCallback ¶
func (fn OnUpdatedWithMemoryEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OneOf_Int32_ArrayInt32 ¶
type OneOf_Int32_ArrayInt32 struct {
// contains filtered or unexported fields
}
func (OneOf_Int32_ArrayInt32) ArrayInt32 ¶
func (x OneOf_Int32_ArrayInt32) ArrayInt32() js.Array[int32]
func (OneOf_Int32_ArrayInt32) Free ¶
func (x OneOf_Int32_ArrayInt32) Free()
func (OneOf_Int32_ArrayInt32) FromRef ¶
func (x OneOf_Int32_ArrayInt32) FromRef(ref js.Ref) OneOf_Int32_ArrayInt32
func (OneOf_Int32_ArrayInt32) Int32 ¶
func (x OneOf_Int32_ArrayInt32) Int32() int32
func (OneOf_Int32_ArrayInt32) Ref ¶
func (x OneOf_Int32_ArrayInt32) Ref() js.Ref
type Process ¶
type Process struct {
// Id is "Process.id"
//
// Optional
//
// NOTE: FFI_USE_Id MUST be set to true to make this field effective.
Id int32
// OsProcessId is "Process.osProcessId"
//
// Optional
//
// NOTE: FFI_USE_OsProcessId MUST be set to true to make this field effective.
OsProcessId int32
// Type is "Process.type"
//
// Optional
Type ProcessType
// Profile is "Process.profile"
//
// Optional
Profile js.String
// NaclDebugPort is "Process.naclDebugPort"
//
// Optional
//
// NOTE: FFI_USE_NaclDebugPort MUST be set to true to make this field effective.
NaclDebugPort int32
// Tasks is "Process.tasks"
//
// Optional
Tasks js.Array[TaskInfo]
// Cpu is "Process.cpu"
//
// Optional
//
// NOTE: FFI_USE_Cpu MUST be set to true to make this field effective.
Cpu float64
// Network is "Process.network"
//
// Optional
//
// NOTE: FFI_USE_Network MUST be set to true to make this field effective.
Network float64
// PrivateMemory is "Process.privateMemory"
//
// Optional
//
// NOTE: FFI_USE_PrivateMemory MUST be set to true to make this field effective.
PrivateMemory float64
// JsMemoryAllocated is "Process.jsMemoryAllocated"
//
// Optional
//
// NOTE: FFI_USE_JsMemoryAllocated MUST be set to true to make this field effective.
JsMemoryAllocated float64
// JsMemoryUsed is "Process.jsMemoryUsed"
//
// Optional
//
// NOTE: FFI_USE_JsMemoryUsed MUST be set to true to make this field effective.
JsMemoryUsed float64
// SqliteMemory is "Process.sqliteMemory"
//
// Optional
//
// NOTE: FFI_USE_SqliteMemory MUST be set to true to make this field effective.
SqliteMemory float64
// ImageCache is "Process.imageCache"
//
// Optional
//
// NOTE: ImageCache.FFI_USE MUST be set to true to get ImageCache used.
ImageCache Cache
// ScriptCache is "Process.scriptCache"
//
// Optional
//
// NOTE: ScriptCache.FFI_USE MUST be set to true to get ScriptCache used.
ScriptCache Cache
// CssCache is "Process.cssCache"
//
// Optional
//
// NOTE: CssCache.FFI_USE MUST be set to true to get CssCache used.
CssCache Cache
FFI_USE_Id bool // for Id.
FFI_USE_OsProcessId bool // for OsProcessId.
FFI_USE_NaclDebugPort bool // for NaclDebugPort.
FFI_USE_Cpu bool // for Cpu.
FFI_USE_Network bool // for Network.
FFI_USE_PrivateMemory bool // for PrivateMemory.
FFI_USE_JsMemoryAllocated bool // for JsMemoryAllocated.
FFI_USE_JsMemoryUsed bool // for JsMemoryUsed.
FFI_USE_SqliteMemory bool // for SqliteMemory.
FFI_USE bool
}
func (*Process) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*Process) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type ProcessType ¶
type ProcessType uint32
const ( ProcessType_BROWSER ProcessType ProcessType_RENDERER ProcessType_EXTENSION ProcessType_NOTIFICATION ProcessType_PLUGIN ProcessType_WORKER ProcessType_NACL ProcessType_SERVICE_WORKER ProcessType_UTILITY ProcessType_GPU ProcessType_OTHER )
func (ProcessType) FromRef ¶
func (ProcessType) FromRef(str js.Ref) ProcessType
func (ProcessType) String ¶
func (x ProcessType) String() (string, bool)
type TaskInfo ¶
type TaskInfo struct {
// Title is "TaskInfo.title"
//
// Optional
Title js.String
// TabId is "TaskInfo.tabId"
//
// Optional
//
// NOTE: FFI_USE_TabId MUST be set to true to make this field effective.
TabId int32
FFI_USE_TabId bool // for TabId.
FFI_USE bool
}
func (*TaskInfo) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*TaskInfo) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type TerminateCallback ¶
type TerminateCallback[T any] struct { Fn func(arg T, this js.Ref, didTerminate bool) js.Ref Arg T }
func (*TerminateCallback[T]) DispatchCallback ¶
func (cb *TerminateCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type TerminateCallbackFunc ¶
func (TerminateCallbackFunc) DispatchCallback ¶
func (fn TerminateCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )