package
0.74.0
Repository: https://github.com/beatlabs/patron.git
Documentation: pkg.go.dev

# Functions

New creates an http router with functional options.
NewFileServerRoute returns a route that acts as a file server.
WithAliveCheck option for the router.
WithAppNameHeaders option for adding name and version header to the response.
WithDeflateLevel option for the compression middleware.
WithExpVarProfiling option for enabling expVar in profiling endpoints.
WithMiddlewares option for middlewares.
WithReadyCheck option for the router.
WithRoutes option for providing routes to the router.

# Structs

Config definition.

# Type aliases

OptionFunc definition to allow functional configuration of the router.