Help us shape the future of Go! Take the 2026 Go Developer Survey

session

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshot

type Snapshot interface {
	State() computeruse.AppState
	Resolve(index int) (*axuiautomation.Element, computeruse.ElementNode, error)
	Close() error
}

Snapshot is the live state handle stored for later actions.

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store keeps the latest live state per app session.

func NewStore

func NewStore() *Store

func (*Store) Bind

func (s *Store) Bind(snapshot Snapshot) (computeruse.AppState, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Get

func (s *Store) Get(stateID string) (computeruse.AppState, bool)

func (*Store) GetForApp

func (s *Store) GetForApp(selector string) (computeruse.AppState, bool)

func (*Store) InvalidateSession

func (s *Store) InvalidateSession(sessionID string) error

func (*Store) Resolve

func (s *Store) Resolve(stateID string, index int) (*axuiautomation.Element, computeruse.ElementNode, error)

func (*Store) ResolveForApp

func (s *Store) ResolveForApp(selector string, index int) (*axuiautomation.Element, computeruse.ElementNode, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL