routes

package
v0.0.0-...-682361c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter() *dispatch.TypedHandler[*Handler]

Types

type Greeting

type Greeting struct {
	Name        string `json:"Hello"`
	VisitNumber uint32
}

func (*Greeting) Html

func (g *Greeting) Html(w http.ResponseWriter) error

func (*Greeting) Json

func (g *Greeting) Json(w http.ResponseWriter) error

func (*Greeting) Text

func (g *Greeting) Text(w http.ResponseWriter) error

type Handler

type Handler struct {
	VisitNumber uint32
	// contains filtered or unexported fields
}

func (*Handler) Request

func (h *Handler) Request() *http.Request

type HtmlOutputer

type HtmlOutputer interface {
	Html(http.ResponseWriter) error
}

type JsonOutputer

type JsonOutputer interface {
	Json(http.ResponseWriter) error
}

type TextOutputer

type TextOutputer interface {
	Text(http.ResponseWriter) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL