app

package
v0.1.31 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

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 New

func New(assetsFS embed.FS, routes ...core.Route) *App

func NewWithFramework

func NewWithFramework(assetsFS embed.FS, fw core.Framework, routes ...core.Route) *App

func NewWithOptions

func NewWithOptions(assetsFS embed.FS, opts []core.ConfigOption, routes ...core.Route) *App

func (*App) ExportStaticPages

func (a *App) ExportStaticPages(outputDir string) error

func (*App) Handle

func (a *App) Handle(routes ...core.Route)

func (*App) Handler

func (a *App) Handler() http.Handler

func (*App) Stop

func (a *App) Stop() error

func (*App) Wrap

func (a *App) Wrap(api Router) http.Handler

type Router

type Router interface {
	http.Handler
	Handle(pattern string, handler http.Handler)
}

Jump to

Keyboard shortcuts

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