From c258a114c40b98f99f7ee20a62c05cdc76940b0d Mon Sep 17 00:00:00 2001 From: ginuerzh Date: Mon, 18 Sep 2023 21:12:08 +0800 Subject: [PATCH] add recorder options --- recorder/recorder.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/recorder/recorder.go b/recorder/recorder.go index c67ca9d..698ebb1 100644 --- a/recorder/recorder.go +++ b/recorder/recorder.go @@ -1,6 +1,8 @@ package recorder -import "context" +import ( + "context" +) type Recorder interface { Record(ctx context.Context, b []byte) error @@ -9,6 +11,13 @@ type Recorder interface { type RecorderObject struct { Recorder Recorder Record string + Options *Options +} + +type Options struct { + Direction bool + TimestampFormat string + Hexdump bool } const (