Documentation
¶
Overview ¶
Package state persists the sticky "current target" across CLI invocations, keyed per browser endpoint, under $XDG_STATE_HOME.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store holds per-endpoint CLI state under an XDG state directory.
func New ¶
New returns a Store rooted at $XDG_STATE_HOME/chrome-cdp (or ~/.local/state), keyed by an endpoint identity (e.g. host:port of the debug endpoint) so distinct Chrome instances don't share a sticky target.
func (*Store) CurrentTarget ¶
CurrentTarget returns the sticky target spec, or "" if none is set.
func (*Store) SetCurrentTarget ¶
SetCurrentTarget persists the sticky target spec.
Click to show internal directories.
Click to hide internal directories.