capsule
typecapsule carries no id field: the id belongs to the store, which hands it back on lookup and iteration.
Value
v1.capsule
capsules
*v0.Storecapsules 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.
- OID
- 04e849…f81a:4
capsules details
maxDelayBlocks
int64Value
1000000
maxMessageLen
intValue
500
Leave
func(message string, delayBlocks int64) int64Leave seals a new message that stays hidden until \`delayBlocks\` blocks from now, then becomes publicly readable forever. Returns the capsule id.
- OID
- 04e849…f81a:7
Leave details
Render
func(path string) string- OID
- 04e849…f81a:9
Render details
renderHome
func() string- OID
- 04e849…f81a:10
renderHome details
renderSealed
func() string- OID
- 04e849…f81a:11
renderSealed details
renderCapsule
func(idStr string) string- OID
- 04e849…f81a:12
renderCapsule details
renderEntry
func(id v0.ID, c *v1.capsule) string- OID
- 04e849…f81a:13
renderEntry details
capsule
:
type
=v1.capsule
capsules : *v0.Store Inspect
maxDelayBlocks
:
int64
=1000000
maxMessageLen
:
int
=500