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: 0
Opens a new window with list of known importers.
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.