mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests: Implement remaining GetOptions fields
This commit is contained in:
@@ -14,14 +14,16 @@
|
||||
|
||||
package testutils
|
||||
|
||||
import clientv3 "go.etcd.io/etcd/client/v3"
|
||||
|
||||
type GetOptions struct {
|
||||
Revision int
|
||||
End string
|
||||
CountOnly bool
|
||||
Serializable bool
|
||||
}
|
||||
|
||||
type GetOption func(*GetOptions)
|
||||
|
||||
func WithSerializable() GetOption {
|
||||
return func(options *GetOptions) {
|
||||
options.Serializable = true
|
||||
}
|
||||
Prefix bool
|
||||
FromKey bool
|
||||
Limit int
|
||||
Order clientv3.SortOrder
|
||||
SortBy clientv3.SortTarget
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user