Documentation ¶
Overview ¶
Service chiapi is an example API written in Go. It is fully logged, and instrumented with New Relic. It also shows basic JWT parsing for authentication, and use of the go-chi router.
Directories ¶
Path | Synopsis |
---|---|
Package handler implements the request handlers for the API.
|
Package handler implements the request handlers for the API. |
Package middleware contains various server middleware to help with requests, including logging, instrumentation, authentication, and debugging middleware.
|
Package middleware contains various server middleware to help with requests, including logging, instrumentation, authentication, and debugging middleware. |
Package router is used to define the routes to our request handlers.
|
Package router is used to define the routes to our request handlers. |
Package server contains an HTTP server implementation that supports graceful shutdowns.
|
Package server contains an HTTP server implementation that supports graceful shutdowns. |
Click to show internal directories.
Click to hide internal directories.