handlers

package
v0.8.99 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 15 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 Basic added in v0.8.82

type Basic struct {
	// contains filtered or unexported fields
}

func NewBasic added in v0.8.31

func NewBasic(opts ...BasicOption) (Basic, error)

func (Basic) Handler added in v0.8.82

func (h Basic) Handler() http.Handler

func (Basic) Router added in v0.8.82

func (h Basic) Router() chi.Router

func (Basic) Validate added in v0.8.82

func (obj Basic) Validate() error

type BasicOption added in v0.8.31

type BasicOption c.Option[Basic]

func WithBasicCustomMiddlewares added in v0.8.31

func WithBasicCustomMiddlewares(mw ...middlewares.Middleware) BasicOption

func WithBasicHandlers added in v0.8.82

func WithBasicHandlers(h map[string]http.Handler) BasicOption

func WithBasicLogger added in v0.8.31

func WithBasicLogger(logger *zap.Logger) BasicOption

type DebugOption

type DebugOption c.Option[debug]

func WithDebugAtomicLevel added in v0.4.2

func WithDebugAtomicLevel(lvl *zap.AtomicLevel) DebugOption

func WithDebugCustomMiddlewares added in v0.8.60

func WithDebugCustomMiddlewares(mw ...middlewares.Middleware) 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 WithStaticBundle added in v0.8.12

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

func WithStaticCustomMiddlewares added in v0.8.31

func WithStaticCustomMiddlewares(mw ...middlewares.Middleware) StaticOption

func WithStaticKnownFile added in v0.8.12

func WithStaticKnownFile(path string, f []byte) StaticOption

func WithStaticLogger added in v0.4.2

func WithStaticLogger(logger *zap.Logger) StaticOption

func WithStaticNoCachePaths added in v0.6.5

func WithStaticNoCachePaths(paths ...string) 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