public

package
v1.15.10 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 10 Imported by: 67

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetsHandler added in v1.15.0

func AssetsHandler(opts *Options) func(next http.Handler) http.Handler

AssetsHandler implements the static handler for serving custom or original assets.

Types

type Options

type Options struct {
	Directory   string
	Prefix      string
	CorsHandler func(http.Handler) http.Handler
}

Options represents the available options to configure the handler.

Jump to

Keyboard shortcuts

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