add options for components
This commit is contained in:
@ -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