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 source realm

Package home is the GnoRadio website on gnoweb, release 1. It owns no data: every page is rendered from the catalog, ...

Overview

Package home is the GnoRadio website on gnoweb, release 1. It owns no data: every page is rendered from the catalog, radio and tickets realms, and its two settings (app.gno) live in the data realm, "home/config".

Functions 4

func Ready

crossing Action
1func Ready(cur realm)
source

Ready tells the data realm that this release is on chain (see data.Propose). Anyone may call it.

func Render

1func Render(path string) string
source

Render serves:

Example
1""                       home: main station on air, stations, new releases, top, concerts
2"stations" "station/<n>" radio stations and their schedule
3"track/<id>"             a track
4"artist/<id|name>"       an artist
5"album/<id>" "playlist/<id>"
6"catalog?p=N&g=G" "artists?p=N" "albums?p=N" "playlists?p=N"
7"concerts?p=N" "event/<id>" "ticket/<id>"
8"listener" "listener/<g1…>" listeners: top curators; one listener's likes, playlists, tickets, badges
9"charts" "join" "about" "moderation?p=N"

Bare entity segments ("track", "artist"…, linked by gnoweb's breadcrumb) open the matching list. Entity pages with long lists take ?p=N too.

Raw path input is never echoed: ids are parsed, names and addresses looked up.

func SetAppURL

crossing Action
1func SetAppURL(cur realm, url string)
source

SetAppURL sets the app link shown on every page: an https URL of at most 100 characters from [A-Za-z0-9-._~/:%], or "" to remove it. Catalog admin only.

func SetContact

crossing Action
1func SetContact(cur realm, line string)
source

SetContact sets the contact line shown next to the notice path (a web form, a postal address…): one line of at most 120 characters, or "" to remove it. Catalog admin only.

Imports 17

Source Files 6