add options for components
This commit is contained in:
1 parent
6431cd8bb9
commit
9e767d6745
6 files changed
+37
-11
No files matched your search
@@ -4,8 +4,11 @@ import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type RecordOptions struct{}
|
||||
type RecordOption func(opts *RecordOptions)
|
||||
|
||||
type Recorder interface {
|
||||
Record(ctx context.Context, b []byte) error
|
||||
Record(ctx context.Context, b []byte, opts ...RecordOption) error
|
||||
}
|
||||
|
||||
type RecorderObject struct {
|
||||
|
||||
Reference in new issue
Block a user