Discover Packages
github.com/plexusone/w3pilot
state
package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Mar 30, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Manager handles named state snapshots.
NewManager creates a new state manager.
If dir is empty, uses ~/.w3pilot/states/
Delete removes a saved state by name.
Exists checks if a state with the given name exists.
List returns information about all saved states.
Load loads a storage state by name.
Save saves a storage state with the given name.
type StateInfo struct {
Name string `json:"name"`
CreatedAt time .Time `json:"created_at"`
Size int64 `json:"size"`
Origins []string `json:"origins,omitempty"`
NumCookies int `json:"num_cookies"`
}
StateInfo contains metadata about a saved state.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.