bucketSize
untyped bigintValue
(16 <untyped> bigint)
MaxPerAuthor
untyped bigintValue
(32 <untyped> bigint)
buckets
*v0.Tree// bucket number -> records joined by "\\n"
- OID
- 0fe733…64e2:4
buckets details
byAuthor
*v0.Tree// address -> "id,id,..."
- OID
- 0fe733…64e2:7
byAuthor details
count
intValue
0
bucketKey
func(id int) string- OID
- 0fe733…64e2:10
bucketKey details
record
func(id int) stringrecord returns "author recipe" for an id, or "".
- OID
- 0fe733…64e2:12
record details
split
func(rec string) (string, string)- OID
- 0fe733…64e2:13
split details
mustRecord
func(id int) (string, string)- OID
- 0fe733…64e2:14
mustRecord details
authorCount
func(addr string) intauthorCount is how many moves an author has published.
- OID
- 0fe733…64e2:15
authorCount details
authorIDs
func(addr string) []int- OID
- 0fe733…64e2:16
authorIDs details
Publish
func(recipe string) intPublish checks a recipe and stores it under the caller's address. It returns the move's id. An author can publish MaxPerAuthor moves.
- OID
- 0fe733…64e2:17
Publish details
Count
func() intCount is how many moves have been published.
- OID
- 0fe733…64e2:18
Count details
Recipe
func(id int) stringRecipe returns a move's recipe string.
- OID
- 0fe733…64e2:19
Recipe details
Author
func(id int) stringAuthor returns who published a move.
- OID
- 0fe733…64e2:20
Author details
Check
func(recipe string) stringCheck reports whether a recipe is valid and what cooldown it needs, without storing anything: "ok \<cost>" or the reason it is refused.
- OID
- 0fe733…64e2:21
Check details
moveJSON
func(id int) string- OID
- 0fe733…64e2:22
moveJSON details
MoveJSON
func(id int) stringMoveJSON describes one move as JSON.
- OID
- 0fe733…64e2:23
MoveJSON details
List
func(skip int, n int) stringList returns up to n moves as a JSON array, newest first, skipping the newest skip.
- OID
- 0fe733…64e2:24
List details
ByAuthor
func(addr string) stringByAuthor returns an author's moves as a JSON array, oldest first.
- OID
- 0fe733…64e2:25
ByAuthor details
short
func(addr string) string- OID
- 0fe733…64e2:26
short details
secs
func(ticks int) string- OID
- 0fe733…64e2:28
secs details
row
func(b *strings.Builder, id int)- OID
- 0fe733…64e2:29
row details
header
untyped stringValue
"| # | Move | Recharge | What it does | Author |\n|---|---|---|---|---|\n"
Render
func(path string) stringRender shows the newest moves, one move at "move/\<id>", or an author's moves at "by/\<address>".
- OID
- 0fe733…64e2:30