Documentation
¶
Overview ¶
Package interactionledger owns adapter-neutral interaction authority state. It allocates opaque references and stores no native request, handle, reply callback, or reference-to-adapter lookup.
Index ¶
- type Ledger
- type Result
- type Slot
- func (s *Slot) Claim() bool
- func (s *Slot) CompleteSent(outcome agent.InteractionOutcome) bool
- func (s *Slot) CompleteTerminal(outcome agent.InteractionOutcome, reason string) bool
- func (s *Slot) ReleaseNotSent() bool
- func (s *Slot) Resolve(fallback Result, answeredReason string) Result
- func (s *Slot) State() State
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
type Ledger struct {
// contains filtered or unexported fields
}
Ledger allocates an interaction reference and registration sequence for one Session. Its reference prefix is only presentation; the ledger never resolves a reference back to adapter state.
type Result ¶
type Result struct {
Outcome agent.InteractionOutcome
Reason string
}
Result is settlement data that remains independent of a native request.
type Slot ¶
type Slot struct {
// contains filtered or unexported fields
}
Slot serializes answer authority for one interaction. The zero value is pending and ready to use.
func (*Slot) CompleteSent ¶
func (s *Slot) CompleteSent(outcome agent.InteractionOutcome) bool
CompleteSent records a successfully submitted answer and its adapter-neutral outcome.
func (*Slot) CompleteTerminal ¶
func (s *Slot) CompleteTerminal( outcome agent.InteractionOutcome, reason string, ) bool
CompleteTerminal consumes authority after an unknown or terminal native outcome. A terminal result takes precedence over a recorded sent result.
func (*Slot) ReleaseNotSent ¶
ReleaseNotSent reopens authority after a definite local non-delivery.