shared

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 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 protection carries, in a context, which protected environments a write may change without a change request, as the context carries the write's transaction.
Package protection carries, in a context, which protected environments a write may change without a change request, as the context carries the write's transaction.
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.
Package subnet groups client addresses the way limits count them.
Package subnet groups client addresses the way limits count them.
Package text is the one rule for the text a client sends: it holds no control character other than a tab or a line break.
Package text is the one rule for the text a client sends: it holds no control character other than a tab or a line break.

Jump to

Keyboard shortcuts

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