assets

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package assets serves bundled UI files. The bootstrap supplies the read-only filesystem and HTML prefix rewrite, keeping deployment routing configuration separate from asset lookup, MIME types and cache policy.

Package assets owns bundled console file responses and their cache contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Files       fs.ReadFileFS
	RewriteHTML func([]byte) []byte
}

Handler serves the embedded tree. Public-route HTML rewriting remains supplied by the route owner, so file serving does not depend on sessions or API clients.

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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