owner
.uverse.addressValue
<gnolang.StringValue>
pendingOwner
.uverse.addressValue
<zero>
writers
v0.Tree- OID
- 09a592…879c:6
writers details
b
*v0.Blog- OID
- 09a592…879c:8
b details
init.4
func()- OID
- 09a592…879c:13
init.4 details
Post
func(slug string, title string, body string, pubDate string, authors string, tags string)Post publishes a new post. pubDate is RFC3339, or empty for the block time. authors and tags are comma-separated.
- OID
- 09a592…879c:15
Post details
Edit
func(slug string, title string, body string, pubDate string, authors string, tags string)Edit replaces the post at slug. An empty pubDate keeps the old date.
- OID
- 09a592…879c:16
Edit details
Remove
func(slug string)Remove deletes the post at slug.
- OID
- 09a592…879c:17
Remove details
AddWriter
func(addr .uverse.address)AddWriter lets addr add, edit and remove posts. Owner only.
- OID
- 09a592…879c:18
AddWriter details
RemoveWriter
func(addr .uverse.address)RemoveWriter takes writing rights away from addr. Owner only.
- OID
- 09a592…879c:19
RemoveWriter details
ProposeOwner
func(addr .uverse.address)ProposeOwner names a new owner, who must then call AcceptOwnership. Owner only. Proposing the empty address cancels a pending proposal.
- OID
- 09a592…879c:20
ProposeOwner details
AcceptOwnership
func()AcceptOwnership completes a handover started with ProposeOwner.
- OID
- 09a592…879c:21
AcceptOwnership details
Owner
func() .uverse.address- OID
- 09a592…879c:22
Owner details
PendingOwner
func() .uverse.address- OID
- 09a592…879c:23
PendingOwner details
IsWriter
func(addr .uverse.address) boolIsWriter reports whether addr may add, edit and remove posts.
- OID
- 09a592…879c:24
IsWriter details
Render
func(path string) stringRender shows the blog. Only "", "p/\<slug>" and "t/\<tag>" are answered; anything else gets "404", so nothing from the URL reaches the page.
- OID
- 09a592…879c:25
Render details
isRoute
func(path string) bool- OID
- 09a592…879c:26
isRoute details
isSlug
func(s string) boolisSlug reports whether s is 1 to 100 characters of a-z, 0-9, '-' or '\_'.
- OID
- 09a592…879c:27
isSlug details
mustSlug
func(s string)- OID
- 09a592…879c:28
mustSlug details
mustTags
func(tags string) []string- OID
- 09a592…879c:29
mustTags details
splitList
func(s string) []stringsplitList splits a comma-separated list, trimming spaces and dropping empty entries.
- OID
- 09a592…879c:30
splitList details
mustUserCall
func() .uverse.address- OID
- 09a592…879c:31
mustUserCall details
mustBeOwner
func() .uverse.address- OID
- 09a592…879c:32
mustBeOwner details
mustBeWriter
func() .uverse.address- OID
- 09a592…879c:33
mustBeWriter details
checkErr
func(err .uverse.error)- OID
- 09a592…879c:34