update plugin options to include WithVersion
This commit is contained in:
1 parent
5f20eb60ad
commit
385b804ed2
1 file changed
+8
@@ -32,6 +32,7 @@ type options struct {
|
||||
withWorkerFilter string
|
||||
withBucketPrefix string
|
||||
withLimit int
|
||||
withVersion uint32
|
||||
}
|
||||
|
||||
func getDefaultOptions() options {
|
||||
@@ -103,3 +104,10 @@ func WithLimit(l int) Option {
|
||||
o.withLimit = l
|
||||
}
|
||||
}
|
||||
|
||||
// WithVersion provides an optional version number
|
||||
func WithVersion(v uint32) Option {
|
||||
return func(o *options) {
|
||||
o.withVersion = v
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user