Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
cache
command
|
|
|
db
command
|
|
|
httpserver
command
|
|
|
log
command
|
|
|
stream/consumer
command
|
|
|
stream/dispatcher
command
|
|
|
pkg
|
|
|
cache
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. |
|
database/sql/upsert
Package upsert builds PostgreSQL INSERT ...
|
Package upsert builds PostgreSQL INSERT ... |
|
encoding
Package encoding puts a JSON serializer behind an interface.
|
Package encoding puts a JSON serializer behind an interface. |
|
gen
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. |
|
httpclient
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. |
|
httpserver
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. |
|
httpserver/httpservertest
Package httpservertest holds helpers for testing handlers written against pkg/httpserver.
|
Package httpservertest holds helpers for testing handlers written against pkg/httpserver. |
|
log
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. |
|
mapper
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. |
|
metrics
Package metrics emits StatsD metrics through a client carried in the context.
|
Package metrics emits StatsD metrics through a client carried in the context. |
|
shutdown
Package shutdown releases an application's resources in order when it stops.
|
Package shutdown releases an application's resources in order when it stops. |
|
stream
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. |
|
stream/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. |
|
stream/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. |
|
validator
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.