Documentation
¶
Index ¶
- type Store
- func (s *Store) DeleteRecording(_ context.Context, id string) error
- func (s *Store) GetRecording(_ context.Context, id string) (*traffic.Recording, error)
- func (s *Store) GetRun(_ context.Context, id string) (*traffic.ReplayRun, error)
- func (s *Store) ListRecordings(_ context.Context) ([]traffic.Recording, error)
- func (s *Store) ListRuns(_ context.Context) ([]traffic.ReplayRun, error)
- func (s *Store) SaveRecording(_ context.Context, rec *traffic.Recording) error
- func (s *Store) SaveRun(_ context.Context, run *traffic.ReplayRun) error
- func (s *Store) UpdateRun(_ context.Context, run *traffic.ReplayRun) error
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 implements traffic.RecordingStore using a mutex-protected map.
func (*Store) DeleteRecording ¶
DeleteRecording removes a recording by ID.
func (*Store) GetRecording ¶
GetRecording returns a recording by ID.
func (*Store) ListRecordings ¶
ListRecordings returns all recordings sorted newest first.
func (*Store) SaveRecording ¶
SaveRecording persists a recording, assigning an ID if empty.
Click to show internal directories.
Click to hide internal directories.