Directories ¶
Path | Synopsis |
---|---|
config
|
|
Package data contains a Database interface with multiple implementations.
|
Package data contains a Database interface with multiple implementations. |
errors
Package errors contains database errors common to all implementations.
|
Package errors contains database errors common to all implementations. |
json
Package json implements a data store using a single JSON file and the memory package.
|
Package json implements a data store using a single JSON file and the memory package. |
memory
Package memory implements a data store in memory only.
|
Package memory implements a data store in memory only. |
psql
Package psql implements a data store using a client to a Postgres database.
|
Package psql implements a data store using a client to a Postgres database. |
Package health contains healthchecking tooling such as an HTTP server and the corresponding HTTP client, only for healthchecks.
|
Package health contains healthchecking tooling such as an HTTP server and the corresponding HTTP client, only for healthchecks. |
Package metrics contains a metrics interface with methods to modify the metrics for Prometheus.
|
Package metrics contains a metrics interface with methods to modify the metrics for Prometheus. |
Package models contains data structures common through the program.
|
Package models contains data structures common through the program. |
Package processor contains operations the server can run and serves as the middle ground between the network server and the data store.
|
Package processor contains operations the server can run and serves as the middle ground between the network server and the data store. |
contenttype
Package contenttype contains functions to extract content type information from request headers as well as set correct headers on the response depending on the Accept and Content-Type request headers.
|
Package contenttype contains functions to extract content type information from request headers as well as set correct headers on the response depending on the Accept and Content-Type request headers. |
decodejson
Package decodejson has helper functions to decode HTTP bodies encoded in JSON.
|
Package decodejson has helper functions to decode HTTP bodies encoded in JSON. |
httperr
Package httperr implements convenience functions to respond with an error to an http client.
|
Package httperr implements convenience functions to respond with an error to an http client. |
middlewares/cors
Package cors has a middleware and functions to parse and set CORS correctly.
|
Package cors has a middleware and functions to parse and set CORS correctly. |
middlewares/metrics
Package metrics implements a metrics middleware for an HTTP server that records metrics data for Prometheus.
|
Package metrics implements a metrics middleware for an HTTP server that records metrics data for Prometheus. |
routes/build
Package build is the HTTP handler for the build information.
|
Package build is the HTTP handler for the build information. |
routes/users
Package users is the HTTP handler for the users.
|
Package users is the HTTP handler for the users. |
Click to show internal directories.
Click to hide internal directories.