Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 state

Back to all declarations

counts

v0.Tree

counts maps an address (as string) -> number of kudos received.

Open
OID
049745…db39:4
counts details

Inspect ref

feed

[]v0.kudo

feed holds recent kudos, newest first, capped at feedCap entries.

Value

<zero>

feedCap

untyped bigint

Value

(50 <untyped> bigint)

kudo

type

Value

v0.kudo

Give

func(to .uverse.address, reason string)

Give records a kudos from the caller to \`to\` with a reason. A caller cannot give kudos to themselves.

Open
OID
049745…db39:6
Give details

Inspect func

entry

type

entry is a leaderboard row used for deterministic sorting.

Value

v0.entry

byScore

type

byScore sorts by count desc, then address asc for stable ties.

Value

v0.byScore

Render

func(path string) string

Render shows a leaderboard of most-received addresses and a recent feed.

Open
OID
049745…db39:9
Render details

Inspect func
counts : v0.Tree Inspect
feed : []v0.kudo =<zero>
feedCap : untyped bigint =(50 <untyped> bigint)
kudo : type =v0.kudo
Give : func(to .uverse.address, reason string) Inspect
entry : type =v0.entry
byScore : type =v0.byScore
leaderboard : func() []v0.entry Inspect
Render : func(path string) string Inspect