Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager holds the central state tree
func NewManager ¶
NewManager creates a new state manager
func (*Manager) GetSessions ¶
GetSessions returns all tracked sessions with full details
func (*Manager) SessionForPane ¶
SessionForPane returns the session name for a given pane ID (e.g. "%42"). Returns empty string if not found.
func (*Manager) Subscribe ¶
func (m *Manager) Subscribe() chan StateEvent
Subscribe returns a channel that receives state events
func (*Manager) Unsubscribe ¶
func (m *Manager) Unsubscribe(ch chan StateEvent)
Unsubscribe removes a subscriber channel
func (*Manager) UpdateSessions ¶
UpdateSessions takes a snapshot of sessions from discovery, diffs against previous state, and broadcasts changes
Click to show internal directories.
Click to hide internal directories.