Directories
¶
| Path | Synopsis |
|---|---|
|
Package cache stores values in Redis, either as raw strings or as JSON-encoded Go values.
|
Package cache stores values in Redis, either as raw strings or as JSON-encoded Go values. |
|
database
|
|
|
sql
Package sql wraps a PostgreSQL connection with context-scoped transactions, Datadog tracing and typed errors.
|
Package sql wraps a PostgreSQL connection with context-scoped transactions, Datadog tracing and typed errors. |
|
sql/upsert
Package upsert builds PostgreSQL INSERT ...
|
Package upsert builds PostgreSQL INSERT ... |
|
Package encoding puts a JSON serializer behind an interface.
|
Package encoding puts a JSON serializer behind an interface. |
|
Package gen provides string generators, used across the devkit wherever an identifier has to be produced.
|
Package gen provides string generators, used across the devkit wherever an identifier has to be produced. |
|
Package httpclient puts *http.Client behind a one-method interface so that outbound calls can be faked in tests.
|
Package httpclient puts *http.Client behind a one-method interface so that outbound calls can be faked in tests. |
|
Package httpserver builds an HTTP server out of a route list, a middleware chain and an error handler.
|
Package httpserver builds an HTTP server out of a route list, a middleware chain and an error handler. |
|
httpservertest
Package httpservertest holds helpers for testing handlers written against pkg/httpserver.
|
Package httpservertest holds helpers for testing handlers written against pkg/httpserver. |
|
Package log provides a leveled, field-oriented logger that travels through the request context.
|
Package log provides a leveled, field-oriented logger that travels through the request context. |
|
Package mapper is a small generic registry keyed by a string-like type.
|
Package mapper is a small generic registry keyed by a string-like type. |
|
Package metrics emits StatsD metrics through a client carried in the context.
|
Package metrics emits StatsD metrics through a client carried in the context. |
|
Package shutdown releases an application's resources in order when it stops.
|
Package shutdown releases an application's resources in order when it stops. |
|
Package stream defines the message payloads exchanged over Kafka by the consumer and dispatcher packages.
|
Package stream defines the message payloads exchanged over Kafka by the consumer and dispatcher packages. |
|
consumer
Package consumer runs a typed Kafka consumer loop around a user-supplied handler.
|
Package consumer runs a typed Kafka consumer loop around a user-supplied handler. |
|
dispatcher
Package dispatcher publishes messages to Kafka and waits for the broker to confirm each one.
|
Package dispatcher publishes messages to Kafka and waits for the broker to confirm each one. |
|
Package validator composes validation rules over a typed payload.
|
Package validator composes validation rules over a typed payload. |
Click to show internal directories.
Click to hide internal directories.