server

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(
	webFS fs.FS,
	siteRoot string,
	version string,
	mgr *heartbeat.Manager,
	histStore history.Store,
	disp *notifier.Dispatcher,
	logger *slog.Logger,
	debug bool,
) http.Handler

NewRouter creates a new HTTP router

func Run added in v0.9.0

func Run(ctx context.Context, listenAddr string, router http.Handler, logger *slog.Logger) error

Run sets up and manages the reverse proxy HTTP server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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