forked from couchbase/gocbcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrud_dura.go
54 lines (44 loc) · 1.16 KB
/
crud_dura.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package gocbcore
import (
"time"
"github.com/couchbase/gocbcore/v10/memd"
)
// ObserveOptions encapsulates the parameters for a ObserveEx operation.
type ObserveOptions struct {
Key []byte
ReplicaIdx int
CollectionName string
ScopeName string
CollectionID uint32
RetryStrategy RetryStrategy
Deadline time.Time
// Internal: This should never be used and is not supported.
User string
TraceContext RequestSpanContext
}
// ObserveVbOptions encapsulates the parameters for a ObserveVbEx operation.
type ObserveVbOptions struct {
VbID uint16
VbUUID VbUUID
ReplicaIdx int
RetryStrategy RetryStrategy
Deadline time.Time
// Internal: This should never be used and is not supported.
User string
TraceContext RequestSpanContext
}
// ObserveResult encapsulates the result of a ObserveEx operation.
type ObserveResult struct {
KeyState memd.KeyState
Cas Cas
}
// ObserveVbResult encapsulates the result of a ObserveVbEx operation.
type ObserveVbResult struct {
DidFailover bool
VbID uint16
VbUUID VbUUID
PersistSeqNo SeqNo
CurrentSeqNo SeqNo
OldVbUUID VbUUID
LastSeqNo SeqNo
}