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

profile state

Back to all declarations

maxNameLen

untyped bigint

Value

(48 <untyped> bigint)

maxBioLen

untyped bigint

Value

(280 <untyped> bigint)

maxURILen

untyped bigint

Value

(200 <untyped> bigint)

Profile

type

Profile is one user's public card (all fields exported for LaunchInfo-style reads).

Value

profile.Profile

inited

bool

Value

true

Init

func()

Init is optional (no-op state). Kept for deploy symmetry with hub/pad.

Open
OID
039eef…bd82:6
Init details

Inspect func

sanitizeText

func(s string, max int) string
Open
OID
039eef…bd82:9
sanitizeText details

Inspect func

SetProfile

func(name string, bio string, uri string)

SetProfile upserts the caller's profile.

Open
OID
039eef…bd82:10
SetProfile details

Inspect func

ClearProfile

func()

ClearProfile removes the caller's profile.

Open
OID
039eef…bd82:11
ClearProfile details

Inspect func

GetProfile

func(addr string) string

GetProfile returns pipe-delimited: name|bio|uri|updatedHeight Empty string if none.

Open
OID
039eef…bd82:12
GetProfile details

Inspect func

HasProfile

func(addr string) bool

HasProfile reports whether addr has a profile.

Open
OID
039eef…bd82:13
HasProfile details

Inspect func

ProfileCount

func() int

ProfileCount returns number of profiles.

Open
OID
039eef…bd82:14
ProfileCount details

Inspect func

sanitizeMD

func(s string) string
Open
OID
039eef…bd82:15
sanitizeMD details

Inspect func

Render

func(path string) string

Render home or user/{addr}

Open
OID
039eef…bd82:16
Render details

Inspect func
maxNameLen : untyped bigint =(48 <untyped> bigint)
maxBioLen : untyped bigint =(280 <untyped> bigint)
maxURILen : untyped bigint =(200 <untyped> bigint)
Profile : type =profile.Profile
byAddr : v0.Tree Inspect
inited : bool =true
Init : func() Inspect
ensure : func() Inspect
sanitizeText : func(s string, max int) string Inspect
SetProfile : func(name string, bio string, uri string) Inspect
ClearProfile : func() Inspect
GetProfile : func(addr string) string Inspect
HasProfile : func(addr string) bool Inspect
ProfileCount : func() int Inspect
sanitizeMD : func(s string) string Inspect
Render : func(path string) string Inspect
resetForTest : func() Inspect