web

package
v0.0.0-...-065a81b Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: CC0-1.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileServer

func FileServer(r chi.Router, path string, root http.FileSystem)

FileServer conveniently sets up a http.FileServer handler to serve static files from a http.FileSystem. stolen from https://github.com/go-chi/chi/blob/master/_examples/fileserver/main.go

func NewAPIRouter

func NewAPIRouter(db *sql.DB, pool *pgxv5Pool.Pool, provider auth.Provider) http.Handler

func NewAuthRouter

func NewAuthRouter(provider auth.Provider) http.Handler

func NewDataRouter

func NewDataRouter(db *sql.DB, provider auth.Provider) http.Handler

func NewHTTPRouter

func NewHTTPRouter() http.Handler

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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