app

package
v0.0.0-...-6d7d20a Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func (*App) Head

func (*App) Head(_ *http.Request) templ.Component

type EventCounterUpdated

type EventCounterUpdated struct{}

EventCounterUpdated is "counter.updated"

type PageIndex

type PageIndex struct{ App *App }

PageIndex is /

func (PageIndex) GET

func (p PageIndex) GET(r *http.Request) (body templ.Component, err error)

func (PageIndex) OnCounterUpdated

func (p PageIndex) OnCounterUpdated(
	event EventCounterUpdated, sse *datastar.ServerSentEventGenerator,
) error

func (PageIndex) POSTAdd

func (p PageIndex) POSTAdd(
	r *http.Request, dispatch func(EventCounterUpdated) error,
	query struct {
		Delta int32 `query:"delta"`
	},
) error

POSTAdd is /add/{$}

Jump to

Keyboard shortcuts

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