Documentation
¶
Overview ¶
Package components is a collection of small Go component packages.
Import subpackages directly. The root package intentionally has no runtime API; it exists only as the module root for packages such as config, encoding, fsm, ddd/event, ddd/message, taskqueue, validation, logger, and sloghelper.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config provides source-based configuration loading, merging, placeholder resolution, value lookup, scanning, and watching.
|
Package config provides source-based configuration loading, merging, placeholder resolution, value lookup, scanning, and watching. |
|
env
Package env provides a config.Source backed by environment variables.
|
Package env provides a config.Source backed by environment variables. |
|
file
Package file provides a config.Source backed by files or directories.
|
Package file provides a config.Source backed by files or directories. |
|
inmem
Package inmem provides an in-memory config.Source.
|
Package inmem provides an in-memory config.Source. |
|
loader
Package loader provides an opinionated application configuration loader.
|
Package loader provides an opinionated application configuration loader. |
|
Package ddd contains reusable components named after DDD concepts.
|
Package ddd contains reusable components named after DDD concepts. |
|
event
Package event provides domain event primitives for use inside one bounded context.
|
Package event provides domain event primitives for use inside one bounded context. |
|
message
Package message provides protobuf-first integration message primitives for direct, non-transactional communication across boundaries.
|
Package message provides protobuf-first integration message primitives for direct, non-transactional communication across boundaries. |
|
message/outbox
Package outbox provides transaction-time recording and relay primitives for reliable integration message publishing.
|
Package outbox provides transaction-time recording and relay primitives for reliable integration message publishing. |
|
Package encoding provides a registry for named codecs.
|
Package encoding provides a registry for named codecs. |
|
json
Package json registers the JSON codec with the encoding registry.
|
Package json registers the JSON codec with the encoding registry. |
|
proto
Package proto defines the protobuf codec.
|
Package proto defines the protobuf codec. |
|
toml
Package toml registers the TOML codec with the encoding registry.
|
Package toml registers the TOML codec with the encoding registry. |
|
yaml
Package yaml registers the YAML codec with the encoding registry.
|
Package yaml registers the YAML codec with the encoding registry. |
|
Package fsm provides small finite state machine primitives for polymorphic state objects.
|
Package fsm provides small finite state machine primitives for polymorphic state objects. |
|
Package logger provides the legacy logging abstraction used by older code in this module.
|
Package logger provides the legacy logging abstraction used by older code in this module. |
|
Package mediator provides the legacy in-process mediator.
|
Package mediator provides the legacy in-process mediator. |
|
Package sloghelper provides helpers around the standard library log/slog package.
|
Package sloghelper provides helpers around the standard library log/slog package. |
|
Package taskqueue defines transport-neutral task queue contracts.
|
Package taskqueue defines transport-neutral task queue contracts. |
|
Package validation provides small validation helpers.
|
Package validation provides small validation helpers. |
Click to show internal directories.
Click to hide internal directories.