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

v1 state

Back to all declarations

selfPath

untyped string

selfPath is this realm's own page. A root-relative link resolves against the domain, not the realm, so every link back into it names it in full.

Value

"/r/moul/x/daily/linktree/v1"

profile

type

profile is one address's personal links page.

Value

v1.profile

profiles

v0.Tree

profiles maps an address (string key) to its \*profile. avl.Tree keeps iteration deterministic for Render.

Open
OID
0f038f…b783:4
profiles details

Inspect ref

MaxProfiles

untyped bigint

The bounds on what a caller may store. Anyone may create a profile, and the root page lists every profile while a profile page lists every link.

Value

(1000 <untyped> bigint)

MaxBioLen

untyped bigint

The bounds on what a caller may store. Anyone may create a profile, and the root page lists every profile while a profile page lists every link.

Value

(280 <untyped> bigint)

MaxLabelLen

untyped bigint

The bounds on what a caller may store. Anyone may create a profile, and the root page lists every profile while a profile page lists every link.

Value

(64 <untyped> bigint)

MaxURLLen

untyped bigint

The bounds on what a caller may store. Anyone may create a profile, and the root page lists every profile while a profile page lists every link.

Value

(512 <untyped> bigint)

SetBio

func(bio string)

SetBio sets (or replaces) the calling address's bio.

Open
OID
0f038f…b783:5
SetBio details

Inspect func

getOrCreate

func(key string) *v1.profile

getOrCreate returns the profile for key, creating an empty one if absent.

Open
OID
0f038f…b783:9
getOrCreate details

Inspect func

Render

func(path string) string

Render shows all profiles at root, or a single profile at "/\<address>".

Open
OID
0f038f…b783:10
Render details

Inspect func

renderProfile

func(addr string) string
Open
OID
0f038f…b783:12
renderProfile details

Inspect func

safeURL

func(u string) bool

safeURL reports whether u can be written into a markdown link destination unescaped.

Open
OID
0f038f…b783:14
safeURL details

Inspect func
selfPath : untyped string ="/r/moul/x/daily/linktree/v1"
profile : type =v1.profile
profiles : v0.Tree Inspect
MaxProfiles : untyped bigint =(1000 <untyped> bigint)
MaxBioLen : untyped bigint =(280 <untyped> bigint)
MaxLabelLen : untyped bigint =(64 <untyped> bigint)
MaxURLLen : untyped bigint =(512 <untyped> bigint)
SetBio : func(bio string) Inspect
getOrCreate : func(key string) *v1.profile Inspect
Render : func(path string) string Inspect
renderIndex : func() string Inspect
renderProfile : func(addr string) string Inspect
caller : func() .uverse.address Inspect
safeURL : func(u string) bool Inspect