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

v2 state

Back to all declarations

chainDomain

string

Value

"gno.land"

Presentation

type

Value

v2.Presentation

byID

v0.Tree

// id -> \*Presentation

Open
OID
039011…de66:5
byID details

Inspect ref

bySlug

v0.Tree

// slug -> \*Presentation

Open
OID
039011…de66:7
bySlug details

Inspect ref

idgen

v0.ID

Value

<zero>

owner

.uverse.address

Value

<gnolang.StringValue>

Render

func(path string) string

Render handles the realm's rendering logic

Open
OID
039011…de66:12
Render details

Inspect func

Set

func(slug string, title string, event string, author string, date string, content string) string

Set adds or updates a presentation

Open
OID
039011…de66:13
Set details

Inspect func

setPresentation

func(uploader .uverse.address, slug string, title string, event string, author string, date string, content string) string

setPresentation is the shared record-mutation preamble used by both the owner-gated Set entrypoint and the init seeding.

Open
OID
039011…de66:14
setPresentation details

Inspect func

Delete

func(slug string) string

Delete removes a presentation

Open
OID
039011…de66:15
Delete details

Inspect func

renderList

func(req *v1.Request) string
Open
OID
039011…de66:16
renderList details

Inspect func

buildSortTree

func(field string) *v0.Tree

buildSortTree builds an avl.Tree whose keys order the presentations by the requested field. A trailing id keeps keys unique and makes ties deterministic (insertion order).

Open
OID
039011…de66:17
buildSortTree details

Inspect func

renderView

func(slug string) string
Open
OID
039011…de66:18
renderView details

Inspect func

renderSlidesNavigation

func(slug string, currentPage int, totalSlides int) string

renderSlidesNavigation returns the navigation bar for slides

Open
OID
039011…de66:19
renderSlidesNavigation details

Inspect func

renderSlides

func(slug string, currentPage int) string
Open
OID
039011…de66:20
renderSlides details

Inspect func

getSortField

func(req *v1.Request) string

Helper functions for sorting and pagination

Open
OID
039011…de66:21
getSortField details

Inspect func

isSortReversed

func(req *v1.Request) bool
Open
OID
039011…de66:22
isSortReversed details

Inspect func

localPath

func(path string, query url.Values) string

helper to create local realm links

Open
OID
039011…de66:24
localPath details

Inspect func
chainDomain : string ="gno.land"
Presentation : type =v2.Presentation
byID : v0.Tree Inspect
bySlug : v0.Tree Inspect
idgen : v0.ID =<zero>
Ownable : *v0.Ownable Inspect
owner : .uverse.address =<gnolang.StringValue>
init.7 : func() Inspect
Render : func(path string) string Inspect
Set : func(slug string, title string, event string, author string, date string, content string) string Inspect
setPresentation : func(uploader .uverse.address, slug string, title string, event string, author string, date string, content string) string Inspect
Delete : func(slug string) string Inspect
renderList : func(req *v1.Request) string Inspect
buildSortTree : func(field string) *v0.Tree Inspect
renderView : func(slug string) string Inspect
renderSlidesNavigation : func(slug string, currentPage int, totalSlides int) string Inspect
renderSlides : func(slug string, currentPage int) string Inspect
getSortField : func(req *v1.Request) string Inspect
isSortReversed : func(req *v1.Request) bool Inspect
localPath : func(path string, query url.Values) string Inspect
init.21 : func() Inspect