Documentation
¶
Overview ¶
Package browserbinding owns a conversation's browser selection. It contains identity and presentation state, never operator credentials or permission to control a browser. The browser host owns the foreground tab within that view.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Binding ¶
type Binding struct {
// contains filtered or unexported fields
}
func (*Binding) Present ¶
Present and Clear are compare-and-swap operations: a late completion from a previous browser cannot reveal or clear a newer binding.
func (*Binding) Restore ¶
Restore adopts an unambiguous existing view only on first discovery. A cleared/closed selection must never silently fall through to another view.
type Snapshot ¶
type Snapshot struct {
SessionID string
Endpoint Endpoint
Revision uint64
Reveal uint64
Changed <-chan struct{}
}
Snapshot is immutable. Changed closes when a newer snapshot is available; readers always fetch the latest state rather than replaying queued events. Reveal advances only for an explicit foreground operation, not discovery or screenshots. Closing a GUI drawer therefore remains a local presentation act.