shared

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package shared is the root of the kernel every layer may import: error kinds, identifiers, the clock and secret values. It imports the standard library only, so the domain can depend on it.

Directories

Path Synopsis
Package clock is the one time source of the server.
Package clock is the one time source of the server.
Package errors is the one way domain and application code says what went wrong: an error of a fixed kind with a stable code.
Package errors is the one way domain and application code says what went wrong: an error of a fixed kind with a stable code.
Package id is the identifiers of every entity: UUIDv7 values minted by the application before the domain sees them, typed per entity.
Package id is the identifiers of every entity: UUIDv7 values minted by the application before the domain sees them, typed per entity.
Package precondition is how a write names the version of the entity it was based on, and how that version is judged against the stored one.
Package precondition is how a write names the version of the entity it was based on, and how that version is judged against the stored one.
Package secret holds values that must never reach a log: passwords, keys, tokens.
Package secret holds values that must never reach a log: passwords, keys, tokens.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL