handlers

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewDebug = c.NewWithValidate[debug, DebugOption]
View Source
var NewStatic = c.NewWithValidate[static, StaticOption]

Functions

func Metrics added in v0.4.2

func Metrics() http.Handler

Types

type DebugOption

type DebugOption c.Option[debug]

func WithDebugAtomicLevel added in v0.4.2

func WithDebugAtomicLevel(lvl *zap.AtomicLevel) DebugOption

func WithDebugLogger added in v0.4.2

func WithDebugLogger(logger *zap.Logger) DebugOption

func WithDebugProber added in v0.5.1

func WithDebugProber(prober *probes.Prober) DebugOption

type StaticOption added in v0.4.2

type StaticOption c.Option[static]

func WithStaticFS added in v0.4.2

func WithStaticFS(staticFS fs.FS, dirname string) StaticOption

func WithStaticLogger added in v0.4.2

func WithStaticLogger(logger *zap.Logger) StaticOption

func WithStaticSPA added in v0.4.2

func WithStaticSPA(spaEnabled bool) StaticOption

Jump to

Keyboard shortcuts

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