Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

crossrealm state

Back to all declarations

LocalStruct

type

Value

crossrealm.LocalStruct

local

*crossrealm.LocalStruct

local is saved locally in this realm

Open
OID
07e973…6376:45
local details

Inspect pointer

Make1

func() *p_crossrealm.Container

Make1 returns a local object wrapped by a p struct

Open
OID
07e973…6376:6
Make1 details

Inspect func

Fooer

type

Value

crossrealm.Fooer

fooer

<nil>

Value

nil

SetFooer

func(f crossrealm.Fooer) crossrealm.Fooer
Open
OID
07e973…6376:8
SetFooer details

Inspect func

CallFooerFooCross

func()
Open
OID
07e973…6376:11
CallFooerFooCross details

Inspect func

CallFooerBarCrossing

func()
Open
OID
07e973…6376:13
CallFooerBarCrossing details

Inspect func

FooerGetter

type

Value

crossrealm.FooerGetter

fooerGetter

crossrealm.FooerGetter

Value

<zero>

SetFooerGetter

func(fg crossrealm.FooerGetter) crossrealm.FooerGetter
Open
OID
07e973…6376:15
SetFooerGetter details

Inspect func

GetFooerGetter

func() crossrealm.FooerGetter
Open
OID
07e973…6376:16
GetFooerGetter details

Inspect func

CallFooerGetterBar

func()
Open
OID
07e973…6376:17
CallFooerGetterBar details

Inspect func

CallFooerGetterBarCrossing

func()
Open
OID
07e973…6376:18
CallFooerGetterBarCrossing details

Inspect func

CallFooerGetterFooCur

func()
Open
OID
07e973…6376:19
CallFooerGetterFooCur details

Inspect func

CallFooerGetterFooCross

func()
Open
OID
07e973…6376:20
CallFooerGetterFooCross details

Inspect func

ExecCrossing

func(cb func(...)) string

This is a top function that does switch realms.

Open
OID
07e973…6376:21
ExecCrossing details

Inspect func

Exec

func(cb func(...)) string

This is a top function that doesn't switch realms.

Open
OID
07e973…6376:22
Exec details

Inspect func

Closure

func(...)

\------------------------------------ SECURITY XXX: Closure and Closure2 below are exported package-level function-typed vars that any foreign realm can set via SetClosure / SetClosure2 and trigger via ExecuteClosure / ExecuteClosureCross. Closure2's signature is \`func(realm)\`, which means whoever sets it receives a realm value at invocation time — capability-bearing data stored in an exported package var, then handed back to caller-supplied code. THIS IS DELIBERATE VM-PARITY-TEST INFRASTRUCTURE — these vars exist to exercise the VM's handling of stored closures and cross- realm callbacks. DO NOT COPY THIS PATTERN IN PRODUCTION CODE. Real /r/ realms must never expose \`func(realm)\` (or any function-typed value capable of receiving cur) as an exported package var.

Value

<zero>

Closure2

func(...)

Value

<zero>

SetClosure2

func(f func(...))
Open
OID
07e973…6376:27
SetClosure2 details

Inspect func

ExecuteClosureCross

func()
Open
OID
07e973…6376:28
ExecuteClosureCross details

Inspect func

Closure3

func(...)

Closure3 mirrors Closure but for non-crossing-with-rlm closures — \`func(\_ int, rlm realm)\`. Whoever sets Closure3 receives cur as a plain value (no realm boundary at invocation time), then can cross internally via cross(rlm).

Value

<zero>

SetClosure3

func(f func(...))
Open
OID
07e973…6376:30
SetClosure3 details

Inspect func

PrintRealms

func()

Closure -> FooUpdate

Open
OID
07e973…6376:32
PrintRealms details

Inspect func

Object

<nil>

\-------------------------------------------------

Value

nil

SetObject

func(x interface{...})
Open
OID
07e973…6376:34
SetObject details

Inspect func

GetObject

func() interface{...}
Open
OID
07e973…6376:35
GetObject details

Inspect func

EntryPoint

func() noCros *v0.Ownable
Open
OID
07e973…6376:36
EntryPoint details

Inspect func

EntryPointWithCrossing

func(int, rlm .uverse.realm) withCros *v0.Ownable

EntryPointWithCrossing is a non-crossing helper that forwards into the (cur realm)-crossing PrevRealmCrossing. Callers pass their own live cur; \`cross(rlm)\` does the actual cross.

Open
OID
07e973…6376:37
EntryPointWithCrossing details

Inspect func

PrevRealmNoCrossing

func() *v0.Ownable
Open
OID
07e973…6376:38
PrevRealmNoCrossing details

Inspect func

PrevRealmCrossing

func() *v0.Ownable
Open
OID
07e973…6376:39
PrevRealmCrossing details

Inspect func

CurRealmNoCrossing

func() runtime.Realm
Open
OID
07e973…6376:40
CurRealmNoCrossing details

Inspect func

CurRealmCrossing

func() runtime.Realm
Open
OID
07e973…6376:41
CurRealmCrossing details

Inspect func

PkgCurRealmNoCrossing

func() runtime.Realm

call the package that returns current realm

Open
OID
07e973…6376:42
PkgCurRealmNoCrossing details

Inspect func

PkgCurRealmCrossing

func() runtime.Realm

call the package that returns current realm

Open
OID
07e973…6376:43
PkgCurRealmCrossing details

Inspect func
LocalStruct : type =crossrealm.LocalStruct
local : *crossrealm.LocalStruct Inspect
init.2 : func() Inspect
Make1 : func() *p_crossrealm.Container Inspect
Fooer : type =crossrealm.Fooer
fooer : <nil> =nil
SetFooer : func(f crossrealm.Fooer) crossrealm.Fooer Inspect
GetFooer : func() crossrealm.Fooer Inspect
CallFooerFooCur : func() Inspect
CallFooerFooCross : func() Inspect
CallFooerBar : func() Inspect
CallFooerBarCrossing : func() Inspect
FooerGetter : type =crossrealm.FooerGetter
fooerGetter : crossrealm.FooerGetter =<zero>
SetFooerGetter : func(fg crossrealm.FooerGetter) crossrealm.FooerGetter Inspect
GetFooerGetter : func() crossrealm.FooerGetter Inspect
CallFooerGetterBar : func() Inspect
CallFooerGetterBarCrossing : func() Inspect
CallFooerGetterFooCur : func() Inspect
CallFooerGetterFooCross : func() Inspect
ExecCrossing : func(cb func(...)) string Inspect
Exec : func(cb func(...)) string Inspect
Closure : func(...) =<zero>
SetClosure : func(f func(...)) Inspect
ExecuteClosure : func() Inspect
Closure2 : func(...) =<zero>
SetClosure2 : func(f func(...)) Inspect
ExecuteClosureCross : func() Inspect
Closure3 : func(...) =<zero>
SetClosure3 : func(f func(...)) Inspect
ExecuteClosure3 : func() Inspect
PrintRealms : func() Inspect
Object : <nil> =nil
SetObject : func(x interface{...}) Inspect
GetObject : func() interface{...} Inspect
EntryPoint : func() noCros *v0.Ownable Inspect
EntryPointWithCrossing : func(int, rlm .uverse.realm) withCros *v0.Ownable Inspect
PrevRealmNoCrossing : func() *v0.Ownable Inspect
PrevRealmCrossing : func() *v0.Ownable Inspect
CurRealmNoCrossing : func() runtime.Realm Inspect
CurRealmCrossing : func() runtime.Realm Inspect
PkgCurRealmNoCrossing : func() runtime.Realm Inspect
PkgCurRealmCrossing : func() runtime.Realm Inspect