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

hub source realm

Package hub is the version/module router for gnomemepad.

Overview

Package hub is the version/module router for gnomemepad.

UI and tooling should resolve the active pad (and other modules) via hub instead of hardcoding padvN paths. Admins rotate module paths without redeploying every consumer.

Example
1Init → SetModule("pad", "gno.land/r/.../padv4") → GetModule("pad")

Functions 8

func GetModule

Action
1func GetModule(name string) string
source

GetModule returns the package path for name, or "" if unset.

func Init

crossing Action
1func Init(cur realm)
source

Init sets the hub admin (first EOA). Call once after deploy.

func ListModules

Action
1func ListModules() string
source

ListModules returns newline-separated "name|path" lines (sorted by name).

func Render

1func Render(path string) string
source

Render — discovery home.

func SetModule

crossing Action
1func SetModule(cur realm, name, path string)
source

SetModule registers or updates a module path (admin only). name: short key e.g. "pad", "profile", "legacy_pad" path: full gno package path

Imports 3

Source Files 2