Documentation
¶
Overview ¶
Package modelview holds cycle-free aggregate request model-view identity: config generation/fingerprint, registry generation, catalog generation, and a stable digest for diagnostics and /v1/models ETag (req 9.6).
It must not import modelregistry, modelcatalog, runtimehost, or stdhttp so composition roots can attach one identity alongside package-native BoundViews without creating package cycles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Identity ¶
type Identity struct {
ConfigGeneration int64
ConfigFingerprint string
RegistryGeneration string
CatalogGeneration string
Digest string
}
Identity is the aggregate request model-view identity: config generation, registry generation, catalog generation, and a stable digest (req 9.6). It carries no secrets, raw config, or connection material.
func FromContext ¶
FromContext returns the request-bound aggregate identity when present.
func (Identity) QuotedETag ¶
QuotedETag returns a safely quoted ETag from the digest, or empty when unset.
func (Identity) SafeFields ¶
SafeFields returns operator-safe diagnostic fields (no secrets).