Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
data
Package data contains a Database interface with multiple implementations.
|
Package data contains a Database interface with multiple implementations. |
data/errors
Package errors contains database errors common to all implementations.
|
Package errors contains database errors common to all implementations. |
data/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. |
data/memory
Package memory implements a data store in memory only.
|
Package memory implements a data store in memory only. |
data/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. |
health
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. |
metrics
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. |
models
Package models contains data structures common through the program.
|
Package models contains data structures common through the program. |
processor
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. |
server/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. |
server/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. |
server/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. |
server/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. |
server/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. |
server/routes/build
Package build is the HTTP handler for the build information.
|
Package build is the HTTP handler for the build information. |
server/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.