Documentation ¶
Index ¶
- Variables
- func Metrics() http.Handler
- type DebugOption
- type StaticOption
- func WithCustomMiddlewares(mw ...middlewares.Middleware) StaticOption
- func WithStaticBundle(staticFS fs.FS, dirname string) StaticOption
- func WithStaticKnownFile(path string, f []byte) StaticOption
- func WithStaticLogger(logger *zap.Logger) StaticOption
- func WithStaticNoCachePaths(paths ...string) StaticOption
- func WithStaticSPA(spaEnabled bool) StaticOption
Constants ¶
This section is empty.
Variables ¶
View Source
var NewDebug = c.NewWithValidate[debug, DebugOption]
View Source
var NewStatic = c.NewWithValidate[static, StaticOption]
Functions ¶
Types ¶
type DebugOption ¶
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
func WithCustomMiddlewares ¶ added in v0.8.23
func WithCustomMiddlewares(mw ...middlewares.Middleware) StaticOption
func WithStaticBundle ¶ added in v0.8.12
func WithStaticBundle(staticFS fs.FS, dirname string) 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
Click to show internal directories.
Click to hide internal directories.