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

maxBioLen

untyped bigint

Value

(140 <untyped> bigint)

record

type

record is the persisted state for one claimed handle.

Value

v0.record

byHandle

v0.Tree

// handle (string) -> \*record

Open
OID
023e8d…ca23:4
byHandle details

Inspect ref

byOwner

v0.Tree

// owner address.String() -> \*record

Open
OID
023e8d…ca23:6
byOwner details

Inspect ref

validHandle

func(h string) bool

validHandle reports whether h is 3-20 chars, starts with a lowercase letter, and contains only lowercase letters and digits thereafter.

Open
OID
023e8d…ca23:7
validHandle details

Inspect func

Register

func(handle string)

Register claims handle for the caller. Aborts if the handle is invalid, already taken, or the caller already owns a handle (release it first).

Open
OID
023e8d…ca23:9
Register details

Inspect func

SetBio

func(bio string)

SetBio updates the bio of the handle owned by the caller.

Open
OID
023e8d…ca23:10
SetBio details

Inspect func

Release

func()

Release frees the handle owned by the caller, making it claimable again.

Open
OID
023e8d…ca23:11
Release details

Inspect func

Transfer

func(to .uverse.address)

Transfer moves the caller's handle to another address that does not already own one.

Open
OID
023e8d…ca23:12
Transfer details

Inspect func

ownRecord

func() *v0.record

ownRecord resolves the record for the current caller, panicking if the caller does not own a handle.

Open
OID
023e8d…ca23:13
ownRecord details

Inspect func

OwnerOf

func(handle string) (.uverse.address, bool)
Open
OID
023e8d…ca23:14
OwnerOf details

Inspect func

HandleOf

func(addr .uverse.address) (string, bool)

HandleOf returns the handle owned by addr, if any.

Open
OID
023e8d…ca23:15
HandleOf details

Inspect func

Count

func() int

Count returns the number of currently registered handles.

Open
OID
023e8d…ca23:16
Count details

Inspect func

Render

func(path string) string

Render renders Markdown. "/" lists every handle; "/\<handle>" shows a single record's detail.

Open
OID
023e8d…ca23:17
Render details

Inspect func

renderHandle

func(handle string) string
Open
OID
023e8d…ca23:19
renderHandle details

Inspect func

short

func(s string) string

short truncates a long address for the index table.

Open
OID
023e8d…ca23:20
short details

Inspect func
maxBioLen : untyped bigint =(140 <untyped> bigint)
record : type =v0.record
byHandle : v0.Tree Inspect
byOwner : v0.Tree Inspect
validHandle : func(h string) bool Inspect
Register : func(handle string) Inspect
SetBio : func(bio string) Inspect
Release : func() Inspect
Transfer : func(to .uverse.address) Inspect
ownRecord : func() *v0.record Inspect
OwnerOf : func(handle string) (.uverse.address, bool) Inspect
HandleOf : func(addr .uverse.address) (string, bool) Inspect
Count : func() int Inspect
Render : func(path string) string Inspect
renderIndex : func() string Inspect
renderHandle : func(handle string) string Inspect
short : func(s string) string Inspect