SideBuy
untyped stringValue
"buy"
SideSell
untyped stringValue
"sell"
SideSwap
untyped stringValue
"swap"
MaxGiveLen
untyped bigintValue
(80 <untyped> bigint)
MaxWantLen
untyped bigintValue
(80 <untyped> bigint)
MaxNoteLen
untyped bigintValue
(280 <untyped> bigint)
DefaultDays
untyped bigintValue
(7 <untyped> bigint)
MaxDays
untyped bigintValue
(30 <untyped> bigint)
MaxActivePerOwner
untyped bigintValue
(10 <untyped> bigint)
day
untyped bigintValue
(86400 <untyped> bigint)
listing
typeValue
board.listing
listings
v0.Tree// padded id -> \*listing
- OID
- 0c7942…a2b8:4
listings details
byOwner
v0.Tree// address -> \[]uint64 listing ids, oldest first
- OID
- 0c7942…a2b8:6
byOwner details
lastID
uint64Value
0
Post
func(side string, give string, want string, note string, days int) uint64Post publishes a listing and returns its id. side is buy, sell or swap; give and want are short phrases such as "50,000 GNOT"; note is optional. days is how long the listing stays up: 0 means 7, the most is 30.
- OID
- 0c7942…a2b8:8
Post details
Close
func(id uint64)Close takes a listing down. Only its owner can close it.
- OID
- 0c7942…a2b8:10
Close details
activeCount
func(owner .uverse.address, now int64) intactiveCount counts the owner's open listings. Listings older than MaxDays cannot be open, so the walk stops there.
- OID
- 0c7942…a2b8:11
activeCount details
cleanText
func(field string, s string, max int, required bool) stringcleanText trims s and rejects text that is too long or carries control, bidi or zero-width characters.
- OID
- 0c7942…a2b8:12
cleanText details
callerOf
func() .uverse.address- OID
- 0c7942…a2b8:13
callerOf details
refuseCoins
func()- OID
- 0c7942…a2b8:14
refuseCoins details
mustListing
func(id uint64) *board.listing- OID
- 0c7942…a2b8:15
mustListing details
listingKey
func(id uint64) string- OID
- 0c7942…a2b8:16
listingKey details
jsonString
func(s string) stringjsonString quotes s as a JSON string. Everything outside printable ASCII is written as a \\u escape, so the output is plain ASCII.
- OID
- 0c7942…a2b8:17
jsonString details
writeU16
func(b *strings.Builder, r int32)- OID
- 0c7942…a2b8:19
writeU16 details
jsonUint
func(v uint64) string- OID
- 0c7942…a2b8:20
jsonUint details
jsonInt
func(v int64) string- OID
- 0c7942…a2b8:21
jsonInt details
jsonBool
func(v bool) string- OID
- 0c7942…a2b8:22
jsonBool details
jsonObject
func(pairs []string) stringjsonObject joins already-encoded key/value pairs.
- OID
- 0c7942…a2b8:23
jsonObject details
jsonArray
func(items []string) string- OID
- 0c7942…a2b8:24
jsonArray details
maxPage
untyped bigintValue
(50 <untyped> bigint)
ListingJSON
func(id uint64) stringListingJSON returns one listing, or null.
- OID
- 0c7942…a2b8:25
ListingJSON details
OpenJSON
func(side string, offset int, limit int) stringOpenJSON lists open listings, newest first. side filters by buy, sell or swap; "" means all.
- OID
- 0c7942…a2b8:27
OpenJSON details
ListingsOfJSON
func(owner string, offset int, limit int) stringListingsOfJSON lists every listing of one owner, newest first.
- OID
- 0c7942…a2b8:28
ListingsOfJSON details
page
func(offset int, limit int) (int, int)- OID
- 0c7942…a2b8:29
page details
Render
func(path string) stringRender shows open listings on gnoweb, and one listing at listing/\<id>.
- OID
- 0c7942…a2b8:30
Render details
renderListing
func(l *board.listing, now int64) string- OID
- 0c7942…a2b8:31
renderListing details
sideLabel
func(side string) string- OID
- 0c7942…a2b8:32
sideLabel details
date
func(unix int64) stringdate writes unix seconds as a UTC calendar date.
- OID
- 0c7942…a2b8:33