add recorder options
This commit is contained in:
parent
801f835e9a
commit
c258a114c4
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user