Discover Packages
github.com/hsqbyte/protospec
src
snapshot
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 25, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package snapshot provides protocol library snapshot and session recording.
Manager manages protocol snapshots.
NewManager creates a new snapshot manager.
Create creates a new snapshot.
List lists all snapshots.
Load loads a snapshot by name.
type SessionRecord struct {
ID string `json:"id"`
StartTime time .Time `json:"start_time"`
EndTime time .Time `json:"end_time"`
Packets int `json:"packets"`
Protocol string `json:"protocol"`
}
SessionRecord represents a recorded protocol session.
type Snapshot struct {
Name string `json:"name"`
CreatedAt time .Time `json:"created_at"`
Hash string `json:"hash"`
Protocols []string `json:"protocols"`
Size int64 `json:"size"`
}
Snapshot represents a saved protocol library state.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.