MCPcopy
hub / github.com/keploy/keploy / RecordHooks

Interface RecordHooks

pkg/service/record/hooks.go:24–29  ·  view source on GitHub ↗

RecordHooks allows enterprise (or any consumer) to inject behaviour into the OSS recording pipeline — the same pattern as TestHooks for the replay service.

Source from the content-addressed store, hash-verified

22// RecordHooks allows enterprise (or any consumer) to inject behaviour into the
23// OSS recording pipeline — the same pattern as TestHooks for the replay service.
24type RecordHooks interface {
25 BeforeTestCaseInsert(ctx context.Context, info *TestCaseContext) error
26 AfterTestCaseInsert(ctx context.Context, info *TestCaseContext) error
27 BeforeMockInsert(ctx context.Context, info *MockContext) error
28 AfterMockInsert(ctx context.Context, info *MockContext) error
29}
30
31// BaseRecordHooks is an embeddable no-op implementation.
32// Consumers embed this and override only the hooks they need.

Callers 4

StartMethod · 0.65
StartMethod · 0.65
StartMethod · 0.65
StartMethod · 0.65

Implementers 1

BaseRecordHookspkg/service/record/hooks.go

Calls

no outgoing calls

Tested by

no test coverage detected