Documentation ¶
Overview ¶
Package web implements a simple, boilerplate HTTP server backed by Chi.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Router ¶
func Router(ctx context.Context, rf middleware.RecovererFunc) *chi.Mux
Router provides a base router with useful middlewares already loaded. Consumers can expand upon this by adding their own routes, etc.
The passed context should contain a *zap.Logger for the logging middleware to be effective.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package middleware implements a variety of useful HTTP middleware.
|
Package middleware implements a variety of useful HTTP middleware. |
Click to show internal directories.
Click to hide internal directories.