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

v1 state

Back to all declarations

capsule

type

capsule carries no id field: the id belongs to the store, which hands it back on lookup and iteration.

Value

v1.capsule

capsules

*v0.Store

capsules assigns the capsule ids. v0 kept its own nextID plus an idKey() that called strings.Repeat WITHOUT the length guard the other realms had, so at the 10^12th capsule it did not mis-sort, it panicked: Repeat rejects a negative count, and the realm would have stopped accepting Leave calls. The store key is 8 fixed bytes with no width to outgrow.

Open
OID
04e849…f81a:4
capsules details

Inspect pointer

maxDelayBlocks

int64

Value

1000000

maxMessageLen

int

Value

500

Leave

func(message string, delayBlocks int64) int64

Leave seals a new message that stays hidden until \`delayBlocks\` blocks from now, then becomes publicly readable forever. Returns the capsule id.

Open
OID
04e849…f81a:7
Leave details

Inspect func

renderCapsule

func(idStr string) string
Open
OID
04e849…f81a:12
renderCapsule details

Inspect func

renderEntry

func(id v0.ID, c *v1.capsule) string
Open
OID
04e849…f81a:13
renderEntry details

Inspect func
capsule : type =v1.capsule
capsules : *v0.Store Inspect
maxDelayBlocks : int64 =1000000
maxMessageLen : int =500
Leave : func(message string, delayBlocks int64) int64 Inspect
Render : func(path string) string Inspect
renderHome : func() string Inspect
renderSealed : func() string Inspect
renderCapsule : func(idStr string) string Inspect
renderEntry : func(id v0.ID, c *v1.capsule) string Inspect