assets

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	VirtualFileName string
	Contents        []byte
}

type Handler

type Handler struct {
	CSS *Bundle
	JS  *Bundle
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(
	next http.Handler,
	dirPath string,
	cacheDirective string,
	devMode bool,
	verbose bool,
) (*Handler, error)

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