PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/nt/mux/v0

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v0
Namespace
nt / mux
Files
10 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/nt/mux/v0
gno
0.9

Files (10)

  • README.mdmarkdown
  • gnomod.tomltoml
  • doc.gnogno
  • handler.gnogno
  • helpers.gnogno
  • request.gnogno
  • response.gnogno
  • router.gnogno
  • request_test.gnogno
  • router_test.gnogno
  • handler.gnogno
    1package mux23// Handler stores a route pattern with one of two handler shapes.4// Fn (HandlerFunc, no rlm) is set by HandleFunc; FnRlm (HandlerFuncRlm,5// rlm-aware non-crossing) is set by HandleFuncRlm. Exactly one is set6// per route. RenderRlm dispatches FnRlm with the supplied rlm; Render7// dispatches Fn and panics if the matched route was registered with8// HandleFuncRlm (caller used the wrong dispatch method).9type Handler struct {10	Pattern string11	Fn      HandlerFunc12	FnRlm   HandlerFuncRlm13}1415type HandlerFunc func(*ResponseWriter, *Request)1617// HandlerFuncRlm is the rlm-aware handler shape — non-crossing18// (`_ int, rlm realm` first params) so callers thread cur as data19// for the handler to forward to downstream crossing functions.20type HandlerFuncRlm func(_ int, rlm realm, res *ResponseWriter, req *Request)2122type ErrHandlerFunc func(*ResponseWriter, *Request) error2324type NotFoundHandler func(*ResponseWriter, *Request)2526// TODO: AutomaticIndex27

    Functions

    not supported for pure packages by the node (vm/qfuncs)

    Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.