Documentation
¶
Overview ¶
Package continuity provides the core-owned B2BUA and lineage boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemoryStoreFromConfig ¶
func NewMemoryStoreFromConfig(cfg config.ContinuityConfig) (b2bua.Store, error)
NewMemoryStoreFromConfig creates an in-memory b2bua.Store from the memory-related fields of a ContinuityConfig. It validates InMemory, TTL, and MaxLegs. This is a pure-core helper with no infra/db dependency.
func ResolveALegRecord ¶
func ResolveALegRecord(ctx context.Context, store b2bua.Store, ref lipapi.SessionRef) (b2bua.ALegRecord, error)
ResolveALegRecord resolves ref to a stored A-leg row (ALegID, WeightedFirstConsumed, etc.). Session resolution order matches Manager.ResolveSession: ALegID, then ContinuityKey, then new A-leg.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager provides the core-owned B2BUA and lineage boundary. It wraps b2bua.Store with higher-level session resolution semantics.
func NewManager ¶
NewManager creates a Manager backed by store.
func (*Manager) ResolveSession ¶
ResolveSession returns the existing session for ref, or creates a new one. It follows the same resolution order as the executor: ALegID > ContinuityKey > new.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bunstore implements b2bua.Store using Bun over database/sql for managed durable continuity (PostgreSQL) and for dialect-backed tests (SQLite).
|
Package bunstore implements b2bua.Store using Bun over database/sql for managed durable continuity (PostgreSQL) and for dialect-backed tests (SQLite). |