rgallery

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dist

func Dist(h http.Handler, c Conf) http.Handler

func Fonts

func Fonts(h http.Handler, c Conf) http.Handler

func SetupApp

func SetupApp(Commit, Tag string)

func SetupMetrics

func SetupMetrics(c Conf) *chi.Mux

func SetupRouter

func SetupRouter(c Conf, cache *cache.Cache, Commit, Tag string) *chi.Mux

func SpaHandler added in v0.0.4

func SpaHandler(fileSystem fs.FS, c Conf) http.HandlerFunc

SpaHandler serves the SPA, handling assets, specific index files, and the root fallback.

func Static

func Static(h http.Handler, c Conf) http.Handler

Types

type Conf

type Conf = types.Conf

type Middleware

type Middleware func(http.HandlerFunc) http.HandlerFunc

type UserCredentials

type UserCredentials = types.UserCredentials

Jump to

Keyboard shortcuts

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