selfPath
untyped stringselfPath is this realm's own page. A root-relative link resolves against the domain, not the realm, so every link back into it names it in full.
Value
"/r/nym-moultest123/x/daily/blog/v1"
Post
typePost is a single blog entry. It carries no id field: the id belongs to the store, which hands it back on lookup and iteration.
Value
v1.Post
posts
*v0.Storeposts holds every published post. The store keys by seqid, so iteration is in publication order for any number of posts; v0 kept its own nextID plus a key() that zero-padded to width 12 and stopped ordering past it.
- OID
- 022419…258f:4
posts details
Publish
func(title string, body string) intPublish creates a new post authored by the caller and returns its id. It is a state-mutating exported function, so it takes \`cur realm\`.
- OID
- 022419…258f:7
Publish details
PostCount
func() intPostCount returns the number of published posts.
- OID
- 022419…258f:9
PostCount details
Render
func(path string) stringRender lists all posts newest-first at the root, or a single post's full text at path "/\<id>". Render is NOT a crossing function.
- OID
- 022419…258f:10
Render details
renderList
func() string- OID
- 022419…258f:11
renderList details
renderPost
func(p *v1.Post) string- OID
- 022419…258f:12