Crate mockforge_recorder

Crate mockforge_recorder 

Source
Expand description

MockForge API Flight Recorder

Records all API requests and responses for analysis, replay, and debugging. Provides a queryable SQLite database of all interactions.

Re-exports§

pub use api::create_api_router;
pub use behavioral_cloning::BehavioralScenario;
pub use behavioral_cloning::BehavioralScenarioReplayEngine;
pub use behavioral_cloning::BehavioralScenarioStep;
pub use behavioral_cloning::Flow;
pub use behavioral_cloning::FlowCompiler;
pub use behavioral_cloning::FlowGroupingStrategy;
pub use behavioral_cloning::FlowRecorder;
pub use behavioral_cloning::FlowRecordingConfig;
pub use behavioral_cloning::FlowStep;
pub use behavioral_cloning::ReplayResponse;
pub use behavioral_cloning::ScenarioInfo;
pub use behavioral_cloning::ScenarioStorage;
pub use behavioral_cloning::StateVariable;
pub use database::RecorderDatabase;
pub use diff::ComparisonResult;
pub use diff::Difference;
pub use diff::DifferenceType;
pub use diff::ResponseComparator;
pub use har_export::export_to_har;
pub use integration_testing::IntegrationTestGenerator;
pub use integration_testing::IntegrationWorkflow;
pub use integration_testing::StepCondition;
pub use integration_testing::StepRequest;
pub use integration_testing::StepValidation;
pub use integration_testing::VariableExtraction;
pub use integration_testing::WorkflowSetup;
pub use integration_testing::WorkflowStep;
pub use middleware::recording_middleware;
pub use models::Protocol;
pub use models::RecordedRequest;
pub use models::RecordedResponse;
pub use openapi_export::QueryFilters;
pub use openapi_export::RecordingsToOpenApi;
pub use query::QueryFilter;
pub use query::QueryResult;
pub use recorder::Recorder;
pub use replay::ReplayEngine;
pub use scrubbing::CaptureFilter;
pub use scrubbing::CaptureFilterConfig;
pub use scrubbing::ScrubConfig;
pub use scrubbing::ScrubRule;
pub use scrubbing::ScrubTarget;
pub use scrubbing::Scrubber;
pub use stub_mapping::RequestMatcher;
pub use stub_mapping::ResponseTemplate;
pub use stub_mapping::StubFormat;
pub use stub_mapping::StubMapping;
pub use stub_mapping::StubMappingConverter;
pub use sync::GitOpsConfig;
pub use sync::SyncConfig;
pub use sync::SyncService;
pub use sync::SyncStatus;
pub use sync::TrafficAwareConfig;
pub use sync_drift::SyncDriftEvaluator;
pub use sync_gitops::GitOpsSyncHandler;
pub use sync_snapshots::EndpointEvolutionSummary;
pub use sync_snapshots::EndpointTimeline;
pub use sync_snapshots::ErrorPattern;
pub use sync_snapshots::SnapshotData;
pub use sync_snapshots::SyncSnapshot;
pub use sync_traffic::EndpointPriority;
pub use sync_traffic::EndpointUsageStats;
pub use sync_traffic::TrafficAnalyzer;
pub use test_generation::GeneratedTest;
pub use test_generation::LlmConfig;
pub use test_generation::TestFormat;
pub use test_generation::TestGenerationConfig;
pub use test_generation::TestGenerationResult;
pub use test_generation::TestGenerator;
pub use test_generation::TestSuiteMetadata;

Modules§

api
Management API for recorded requests
behavioral_cloning
Behavioral cloning modules for flow recording and scenario management
database
SQLite database for storing recorded requests and responses
diff
Request/response diff viewer with content-aware comparison
har_export
HAR (HTTP Archive) export functionality
integration_testing
Integration testing workflow engine
middleware
Recording middleware for HTTP requests
models
Data models for recorded requests and responses
openapi_export
OpenAPI export utilities for recorder
protocols
Protocol-specific recording helpers
query
Query API for recorded requests
recorder
Core recording functionality
replay
Replay functionality for recorded requests
scrubbing
Capture Scrubbing & Deterministic Replay
stub_mapping
Stub mapping conversion from recorded requests/responses
sync
Automatic sync/polling for detecting upstream API changes
sync_drift
Drift budget integration for sync operations
sync_gitops
GitOps integration for sync operations
sync_snapshots
Shadow Snapshot Mode - Store canonical before/after datasets per endpoint scenario
sync_traffic
Traffic-aware sync filtering
test_generation
AI-powered test generation from recorded API interactions

Enums§

RecorderError
Recorder errors

Type Aliases§

Result