diff --git a/recorder/recorder.go b/recorder/recorder.go index 2125167..13cbd57 100644 --- a/recorder/recorder.go +++ b/recorder/recorder.go @@ -4,9 +4,18 @@ import ( "context" ) -type RecordOptions struct{} +type RecordOptions struct { + Metadata any +} + type RecordOption func(opts *RecordOptions) +func MetadataReocrdOption(md any) RecordOption { + return func(opts *RecordOptions) { + opts.Metadata = md + } +} + type Recorder interface { Record(ctx context.Context, b []byte, opts ...RecordOption) error }