Documentation
¶
Index ¶
- Variables
- func NewLoggablePutRequest(request *PutRequest) *loggablePutRequest
- func NewLoggableTxnRequest(request *TxnRequest) *txnRequestStringer
- type CompactionRequest
- func (*CompactionRequest) Descriptor() ([]byte, []int)
- func (m *CompactionRequest) GetPhysical() bool
- func (m *CompactionRequest) GetRevision() int64
- func (m *CompactionRequest) Marshal() (dAtA []byte, err error)
- func (m *CompactionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CompactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CompactionRequest) ProtoMessage()
- func (m *CompactionRequest) Reset()
- func (m *CompactionRequest) Size() (n int)
- func (m *CompactionRequest) String() string
- func (m *CompactionRequest) Unmarshal(dAtA []byte) error
- func (m *CompactionRequest) XXX_DiscardUnknown()
- func (m *CompactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompactionRequest) XXX_Merge(src proto.Message)
- func (m *CompactionRequest) XXX_Size() int
- func (m *CompactionRequest) XXX_Unmarshal(b []byte) error
- type CompactionResponse
- func (*CompactionResponse) Descriptor() ([]byte, []int)
- func (m *CompactionResponse) GetHeader() *ResponseHeader
- func (m *CompactionResponse) Marshal() (dAtA []byte, err error)
- func (m *CompactionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CompactionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CompactionResponse) ProtoMessage()
- func (m *CompactionResponse) Reset()
- func (m *CompactionResponse) Size() (n int)
- func (m *CompactionResponse) String() string
- func (m *CompactionResponse) Unmarshal(dAtA []byte) error
- func (m *CompactionResponse) XXX_DiscardUnknown()
- func (m *CompactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompactionResponse) XXX_Merge(src proto.Message)
- func (m *CompactionResponse) XXX_Size() int
- func (m *CompactionResponse) XXX_Unmarshal(b []byte) error
- type Compare
- func (*Compare) Descriptor() ([]byte, []int)
- func (m *Compare) GetCreateRevision() int64
- func (m *Compare) GetKey() []byte
- func (m *Compare) GetLease() int64
- func (m *Compare) GetModRevision() int64
- func (m *Compare) GetRangeEnd() []byte
- func (m *Compare) GetResult() Compare_CompareResult
- func (m *Compare) GetTarget() Compare_CompareTarget
- func (m *Compare) GetTargetUnion() isCompare_TargetUnion
- func (m *Compare) GetValue() []byte
- func (m *Compare) GetVersion() int64
- func (m *Compare) Marshal() (dAtA []byte, err error)
- func (m *Compare) MarshalTo(dAtA []byte) (int, error)
- func (m *Compare) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Compare) ProtoMessage()
- func (m *Compare) Reset()
- func (m *Compare) Size() (n int)
- func (m *Compare) String() string
- func (m *Compare) Unmarshal(dAtA []byte) error
- func (m *Compare) XXX_DiscardUnknown()
- func (m *Compare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Compare) XXX_Merge(src proto.Message)
- func (*Compare) XXX_OneofWrappers() []interface{}
- func (m *Compare) XXX_Size() int
- func (m *Compare) XXX_Unmarshal(b []byte) error
- type Compare_CompareResult
- type Compare_CompareTarget
- type Compare_CreateRevision
- type Compare_Lease
- type Compare_ModRevision
- type Compare_Value
- type Compare_Version
- type DeleteRangeRequest
- func (*DeleteRangeRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRangeRequest) GetKey() []byte
- func (m *DeleteRangeRequest) GetPrevKv() bool
- func (m *DeleteRangeRequest) GetRangeEnd() []byte
- func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteRangeRequest) ProtoMessage()
- func (m *DeleteRangeRequest) Reset()
- func (m *DeleteRangeRequest) Size() (n int)
- func (m *DeleteRangeRequest) String() string
- func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error
- func (m *DeleteRangeRequest) XXX_DiscardUnknown()
- func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRangeRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRangeRequest) XXX_Size() int
- func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error
- type DeleteRangeResponse
- func (*DeleteRangeResponse) Descriptor() ([]byte, []int)
- func (m *DeleteRangeResponse) GetDeleted() int64
- func (m *DeleteRangeResponse) GetHeader() *ResponseHeader
- func (m *DeleteRangeResponse) GetPrevKvs() []*KeyValue
- func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error)
- func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteRangeResponse) ProtoMessage()
- func (m *DeleteRangeResponse) Reset()
- func (m *DeleteRangeResponse) Size() (n int)
- func (m *DeleteRangeResponse) String() string
- func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error
- func (m *DeleteRangeResponse) XXX_DiscardUnknown()
- func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRangeResponse) XXX_Merge(src proto.Message)
- func (m *DeleteRangeResponse) XXX_Size() int
- func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) Marshal() (dAtA []byte, err error)
- func (m *Event) MarshalTo(dAtA []byte) (int, error)
- func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) Size() (n int)
- func (m *Event) String() string
- func (m *Event) Unmarshal(dAtA []byte) error
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type Event_EventType
- type HashKVRequest
- func (*HashKVRequest) Descriptor() ([]byte, []int)
- func (m *HashKVRequest) GetRevision() int64
- func (m *HashKVRequest) Marshal() (dAtA []byte, err error)
- func (m *HashKVRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HashKVRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HashKVRequest) ProtoMessage()
- func (m *HashKVRequest) Reset()
- func (m *HashKVRequest) Size() (n int)
- func (m *HashKVRequest) String() string
- func (m *HashKVRequest) Unmarshal(dAtA []byte) error
- func (m *HashKVRequest) XXX_DiscardUnknown()
- func (m *HashKVRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashKVRequest) XXX_Merge(src proto.Message)
- func (m *HashKVRequest) XXX_Size() int
- func (m *HashKVRequest) XXX_Unmarshal(b []byte) error
- type HashKVResponse
- func (*HashKVResponse) Descriptor() ([]byte, []int)
- func (m *HashKVResponse) GetCompactRevision() int64
- func (m *HashKVResponse) GetHash() uint32
- func (m *HashKVResponse) GetHeader() *ResponseHeader
- func (m *HashKVResponse) Marshal() (dAtA []byte, err error)
- func (m *HashKVResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HashKVResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HashKVResponse) ProtoMessage()
- func (m *HashKVResponse) Reset()
- func (m *HashKVResponse) Size() (n int)
- func (m *HashKVResponse) String() string
- func (m *HashKVResponse) Unmarshal(dAtA []byte) error
- func (m *HashKVResponse) XXX_DiscardUnknown()
- func (m *HashKVResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashKVResponse) XXX_Merge(src proto.Message)
- func (m *HashKVResponse) XXX_Size() int
- func (m *HashKVResponse) XXX_Unmarshal(b []byte) error
- type HashRequest
- func (*HashRequest) Descriptor() ([]byte, []int)
- func (m *HashRequest) Marshal() (dAtA []byte, err error)
- func (m *HashRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HashRequest) ProtoMessage()
- func (m *HashRequest) Reset()
- func (m *HashRequest) Size() (n int)
- func (m *HashRequest) String() string
- func (m *HashRequest) Unmarshal(dAtA []byte) error
- func (m *HashRequest) XXX_DiscardUnknown()
- func (m *HashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashRequest) XXX_Merge(src proto.Message)
- func (m *HashRequest) XXX_Size() int
- func (m *HashRequest) XXX_Unmarshal(b []byte) error
- type HashResponse
- func (*HashResponse) Descriptor() ([]byte, []int)
- func (m *HashResponse) GetHash() uint32
- func (m *HashResponse) GetHeader() *ResponseHeader
- func (m *HashResponse) Marshal() (dAtA []byte, err error)
- func (m *HashResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HashResponse) ProtoMessage()
- func (m *HashResponse) Reset()
- func (m *HashResponse) Size() (n int)
- func (m *HashResponse) String() string
- func (m *HashResponse) Unmarshal(dAtA []byte) error
- func (m *HashResponse) XXX_DiscardUnknown()
- func (m *HashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashResponse) XXX_Merge(src proto.Message)
- func (m *HashResponse) XXX_Size() int
- func (m *HashResponse) XXX_Unmarshal(b []byte) error
- type KeyValue
- func (*KeyValue) Descriptor() ([]byte, []int)
- func (m *KeyValue) Marshal() (dAtA []byte, err error)
- func (m *KeyValue) MarshalTo(dAtA []byte) (int, error)
- func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeyValue) ProtoMessage()
- func (m *KeyValue) Reset()
- func (m *KeyValue) Size() (n int)
- func (m *KeyValue) String() string
- func (m *KeyValue) Unmarshal(dAtA []byte) error
- func (m *KeyValue) XXX_DiscardUnknown()
- func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValue) XXX_Merge(src proto.Message)
- func (m *KeyValue) XXX_Size() int
- func (m *KeyValue) XXX_Unmarshal(b []byte) error
- type Lease
- func (*Lease) Descriptor() ([]byte, []int)
- func (m *Lease) Marshal() (dAtA []byte, err error)
- func (m *Lease) MarshalTo(dAtA []byte) (int, error)
- func (m *Lease) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Lease) ProtoMessage()
- func (m *Lease) Reset()
- func (m *Lease) Size() (n int)
- func (m *Lease) String() string
- func (m *Lease) Unmarshal(dAtA []byte) error
- func (m *Lease) XXX_DiscardUnknown()
- func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Lease) XXX_Merge(src proto.Message)
- func (m *Lease) XXX_Size() int
- func (m *Lease) XXX_Unmarshal(b []byte) error
- type LeaseGrantRequest
- func (*LeaseGrantRequest) Descriptor() ([]byte, []int)
- func (m *LeaseGrantRequest) GetID() int64
- func (m *LeaseGrantRequest) GetTTL() int64
- func (m *LeaseGrantRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseGrantRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseGrantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseGrantRequest) ProtoMessage()
- func (m *LeaseGrantRequest) Reset()
- func (m *LeaseGrantRequest) Size() (n int)
- func (m *LeaseGrantRequest) String() string
- func (m *LeaseGrantRequest) Unmarshal(dAtA []byte) error
- func (m *LeaseGrantRequest) XXX_DiscardUnknown()
- func (m *LeaseGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseGrantRequest) XXX_Merge(src proto.Message)
- func (m *LeaseGrantRequest) XXX_Size() int
- func (m *LeaseGrantRequest) XXX_Unmarshal(b []byte) error
- type LeaseGrantResponse
- func (*LeaseGrantResponse) Descriptor() ([]byte, []int)
- func (m *LeaseGrantResponse) GetError() string
- func (m *LeaseGrantResponse) GetHeader() *ResponseHeader
- func (m *LeaseGrantResponse) GetID() int64
- func (m *LeaseGrantResponse) GetTTL() int64
- func (m *LeaseGrantResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseGrantResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseGrantResponse) ProtoMessage()
- func (m *LeaseGrantResponse) Reset()
- func (m *LeaseGrantResponse) Size() (n int)
- func (m *LeaseGrantResponse) String() string
- func (m *LeaseGrantResponse) Unmarshal(dAtA []byte) error
- func (m *LeaseGrantResponse) XXX_DiscardUnknown()
- func (m *LeaseGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseGrantResponse) XXX_Merge(src proto.Message)
- func (m *LeaseGrantResponse) XXX_Size() int
- func (m *LeaseGrantResponse) XXX_Unmarshal(b []byte) error
- type LeaseInternalRequest
- func (*LeaseInternalRequest) Descriptor() ([]byte, []int)
- func (m *LeaseInternalRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseInternalRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseInternalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseInternalRequest) ProtoMessage()
- func (m *LeaseInternalRequest) Reset()
- func (m *LeaseInternalRequest) Size() (n int)
- func (m *LeaseInternalRequest) String() string
- func (m *LeaseInternalRequest) Unmarshal(dAtA []byte) error
- func (m *LeaseInternalRequest) XXX_DiscardUnknown()
- func (m *LeaseInternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseInternalRequest) XXX_Merge(src proto.Message)
- func (m *LeaseInternalRequest) XXX_Size() int
- func (m *LeaseInternalRequest) XXX_Unmarshal(b []byte) error
- type LeaseInternalResponse
- func (*LeaseInternalResponse) Descriptor() ([]byte, []int)
- func (m *LeaseInternalResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseInternalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseInternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseInternalResponse) ProtoMessage()
- func (m *LeaseInternalResponse) Reset()
- func (m *LeaseInternalResponse) Size() (n int)
- func (m *LeaseInternalResponse) String() string
- func (m *LeaseInternalResponse) Unmarshal(dAtA []byte) error
- func (m *LeaseInternalResponse) XXX_DiscardUnknown()
- func (m *LeaseInternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseInternalResponse) XXX_Merge(src proto.Message)
- func (m *LeaseInternalResponse) XXX_Size() int
- func (m *LeaseInternalResponse) XXX_Unmarshal(b []byte) error
- type LeaseKeepAliveRequest
- func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int)
- func (m *LeaseKeepAliveRequest) GetID() int64
- func (m *LeaseKeepAliveRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseKeepAliveRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseKeepAliveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseKeepAliveRequest) ProtoMessage()
- func (m *LeaseKeepAliveRequest) Reset()
- func (m *LeaseKeepAliveRequest) Size() (n int)
- func (m *LeaseKeepAliveRequest) String() string
- func (m *LeaseKeepAliveRequest) Unmarshal(dAtA []byte) error
- func (m *LeaseKeepAliveRequest) XXX_DiscardUnknown()
- func (m *LeaseKeepAliveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseKeepAliveRequest) XXX_Merge(src proto.Message)
- func (m *LeaseKeepAliveRequest) XXX_Size() int
- func (m *LeaseKeepAliveRequest) XXX_Unmarshal(b []byte) error
- type LeaseKeepAliveResponse
- func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int)
- func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader
- func (m *LeaseKeepAliveResponse) GetID() int64
- func (m *LeaseKeepAliveResponse) GetTTL() int64
- func (m *LeaseKeepAliveResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseKeepAliveResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseKeepAliveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseKeepAliveResponse) ProtoMessage()
- func (m *LeaseKeepAliveResponse) Reset()
- func (m *LeaseKeepAliveResponse) Size() (n int)
- func (m *LeaseKeepAliveResponse) String() string
- func (m *LeaseKeepAliveResponse) Unmarshal(dAtA []byte) error
- func (m *LeaseKeepAliveResponse) XXX_DiscardUnknown()
- func (m *LeaseKeepAliveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseKeepAliveResponse) XXX_Merge(src proto.Message)
- func (m *LeaseKeepAliveResponse) XXX_Size() int
- func (m *LeaseKeepAliveResponse) XXX_Unmarshal(b []byte) error
- type LeaseLeasesRequest
- func (*LeaseLeasesRequest) Descriptor() ([]byte, []int)
- func (m *LeaseLeasesRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseLeasesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseLeasesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseLeasesRequest) ProtoMessage()
- func (m *LeaseLeasesRequest) Reset()
- func (m *LeaseLeasesRequest) Size() (n int)
- func (m *LeaseLeasesRequest) String() string
- func (m *LeaseLeasesRequest) Unmarshal(dAtA []byte) error
- func (m *LeaseLeasesRequest) XXX_DiscardUnknown()
- func (m *LeaseLeasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseLeasesRequest) XXX_Merge(src proto.Message)
- func (m *LeaseLeasesRequest) XXX_Size() int
- func (m *LeaseLeasesRequest) XXX_Unmarshal(b []byte) error
- type LeaseLeasesResponse
- func (*LeaseLeasesResponse) Descriptor() ([]byte, []int)
- func (m *LeaseLeasesResponse) GetHeader() *ResponseHeader
- func (m *LeaseLeasesResponse) GetLeases() []*LeaseStatus
- func (m *LeaseLeasesResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseLeasesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseLeasesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseLeasesResponse) ProtoMessage()
- func (m *LeaseLeasesResponse) Reset()
- func (m *LeaseLeasesResponse) Size() (n int)
- func (m *LeaseLeasesResponse) String() string
- func (m *LeaseLeasesResponse) Unmarshal(dAtA []byte) error
- func (m *LeaseLeasesResponse) XXX_DiscardUnknown()
- func (m *LeaseLeasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseLeasesResponse) XXX_Merge(src proto.Message)
- func (m *LeaseLeasesResponse) XXX_Size() int
- func (m *LeaseLeasesResponse) XXX_Unmarshal(b []byte) error
- type LeaseRevokeRequest
- func (*LeaseRevokeRequest) Descriptor() ([]byte, []int)
- func (m *LeaseRevokeRequest) GetID() int64
- func (m *LeaseRevokeRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseRevokeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseRevokeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseRevokeRequest) ProtoMessage()
- func (m *LeaseRevokeRequest) Reset()
- func (m *LeaseRevokeRequest) Size() (n int)
- func (m *LeaseRevokeRequest) String() string
- func (m *LeaseRevokeRequest) Unmarshal(dAtA []byte) error
- func (m *LeaseRevokeRequest) XXX_DiscardUnknown()
- func (m *LeaseRevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseRevokeRequest) XXX_Merge(src proto.Message)
- func (m *LeaseRevokeRequest) XXX_Size() int
- func (m *LeaseRevokeRequest) XXX_Unmarshal(b []byte) error
- type LeaseRevokeResponse
- func (*LeaseRevokeResponse) Descriptor() ([]byte, []int)
- func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader
- func (m *LeaseRevokeResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseRevokeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseRevokeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseRevokeResponse) ProtoMessage()
- func (m *LeaseRevokeResponse) Reset()
- func (m *LeaseRevokeResponse) Size() (n int)
- func (m *LeaseRevokeResponse) String() string
- func (m *LeaseRevokeResponse) Unmarshal(dAtA []byte) error
- func (m *LeaseRevokeResponse) XXX_DiscardUnknown()
- func (m *LeaseRevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseRevokeResponse) XXX_Merge(src proto.Message)
- func (m *LeaseRevokeResponse) XXX_Size() int
- func (m *LeaseRevokeResponse) XXX_Unmarshal(b []byte) error
- type LeaseStatus
- func (*LeaseStatus) Descriptor() ([]byte, []int)
- func (m *LeaseStatus) GetID() int64
- func (m *LeaseStatus) Marshal() (dAtA []byte, err error)
- func (m *LeaseStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseStatus) ProtoMessage()
- func (m *LeaseStatus) Reset()
- func (m *LeaseStatus) Size() (n int)
- func (m *LeaseStatus) String() string
- func (m *LeaseStatus) Unmarshal(dAtA []byte) error
- func (m *LeaseStatus) XXX_DiscardUnknown()
- func (m *LeaseStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseStatus) XXX_Merge(src proto.Message)
- func (m *LeaseStatus) XXX_Size() int
- func (m *LeaseStatus) XXX_Unmarshal(b []byte) error
- type LeaseTimeToLiveRequest
- func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int)
- func (m *LeaseTimeToLiveRequest) GetID() int64
- func (m *LeaseTimeToLiveRequest) GetKeys() bool
- func (m *LeaseTimeToLiveRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaseTimeToLiveRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseTimeToLiveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseTimeToLiveRequest) ProtoMessage()
- func (m *LeaseTimeToLiveRequest) Reset()
- func (m *LeaseTimeToLiveRequest) Size() (n int)
- func (m *LeaseTimeToLiveRequest) String() string
- func (m *LeaseTimeToLiveRequest) Unmarshal(dAtA []byte) error
- func (m *LeaseTimeToLiveRequest) XXX_DiscardUnknown()
- func (m *LeaseTimeToLiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseTimeToLiveRequest) XXX_Merge(src proto.Message)
- func (m *LeaseTimeToLiveRequest) XXX_Size() int
- func (m *LeaseTimeToLiveRequest) XXX_Unmarshal(b []byte) error
- type LeaseTimeToLiveResponse
- func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int)
- func (m *LeaseTimeToLiveResponse) GetGrantedTTL() int64
- func (m *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader
- func (m *LeaseTimeToLiveResponse) GetID() int64
- func (m *LeaseTimeToLiveResponse) GetKeys() [][]byte
- func (m *LeaseTimeToLiveResponse) GetTTL() int64
- func (m *LeaseTimeToLiveResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaseTimeToLiveResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseTimeToLiveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseTimeToLiveResponse) ProtoMessage()
- func (m *LeaseTimeToLiveResponse) Reset()
- func (m *LeaseTimeToLiveResponse) Size() (n int)
- func (m *LeaseTimeToLiveResponse) String() string
- func (m *LeaseTimeToLiveResponse) Unmarshal(dAtA []byte) error
- func (m *LeaseTimeToLiveResponse) XXX_DiscardUnknown()
- func (m *LeaseTimeToLiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseTimeToLiveResponse) XXX_Merge(src proto.Message)
- func (m *LeaseTimeToLiveResponse) XXX_Size() int
- func (m *LeaseTimeToLiveResponse) XXX_Unmarshal(b []byte) error
- type PutRequest
- func (*PutRequest) Descriptor() ([]byte, []int)
- func (m *PutRequest) GetIgnoreLease() bool
- func (m *PutRequest) GetIgnoreValue() bool
- func (m *PutRequest) GetKey() []byte
- func (m *PutRequest) GetLease() int64
- func (m *PutRequest) GetPrevKv() bool
- func (m *PutRequest) GetValue() []byte
- func (m *PutRequest) Marshal() (dAtA []byte, err error)
- func (m *PutRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PutRequest) ProtoMessage()
- func (m *PutRequest) Reset()
- func (m *PutRequest) Size() (n int)
- func (m *PutRequest) String() string
- func (m *PutRequest) Unmarshal(dAtA []byte) error
- func (m *PutRequest) XXX_DiscardUnknown()
- func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PutRequest) XXX_Merge(src proto.Message)
- func (m *PutRequest) XXX_Size() int
- func (m *PutRequest) XXX_Unmarshal(b []byte) error
- type PutResponse
- func (*PutResponse) Descriptor() ([]byte, []int)
- func (m *PutResponse) GetHeader() *ResponseHeader
- func (m *PutResponse) GetPrevKv() *KeyValue
- func (m *PutResponse) Marshal() (dAtA []byte, err error)
- func (m *PutResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PutResponse) ProtoMessage()
- func (m *PutResponse) Reset()
- func (m *PutResponse) Size() (n int)
- func (m *PutResponse) String() string
- func (m *PutResponse) Unmarshal(dAtA []byte) error
- func (m *PutResponse) XXX_DiscardUnknown()
- func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PutResponse) XXX_Merge(src proto.Message)
- func (m *PutResponse) XXX_Size() int
- func (m *PutResponse) XXX_Unmarshal(b []byte) error
- type RangeRequest
- func (*RangeRequest) Descriptor() ([]byte, []int)
- func (m *RangeRequest) GetCountOnly() bool
- func (m *RangeRequest) GetKey() []byte
- func (m *RangeRequest) GetKeysOnly() bool
- func (m *RangeRequest) GetLimit() int64
- func (m *RangeRequest) GetMaxCreateRevision() int64
- func (m *RangeRequest) GetMaxModRevision() int64
- func (m *RangeRequest) GetMinCreateRevision() int64
- func (m *RangeRequest) GetMinModRevision() int64
- func (m *RangeRequest) GetRangeEnd() []byte
- func (m *RangeRequest) GetRevision() int64
- func (m *RangeRequest) GetSerializable() bool
- func (m *RangeRequest) GetSortOrder() RangeRequest_SortOrder
- func (m *RangeRequest) GetSortTarget() RangeRequest_SortTarget
- func (m *RangeRequest) Marshal() (dAtA []byte, err error)
- func (m *RangeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *RangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RangeRequest) ProtoMessage()
- func (m *RangeRequest) Reset()
- func (m *RangeRequest) Size() (n int)
- func (m *RangeRequest) String() string
- func (m *RangeRequest) Unmarshal(dAtA []byte) error
- func (m *RangeRequest) XXX_DiscardUnknown()
- func (m *RangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RangeRequest) XXX_Merge(src proto.Message)
- func (m *RangeRequest) XXX_Size() int
- func (m *RangeRequest) XXX_Unmarshal(b []byte) error
- type RangeRequest_SortOrder
- type RangeRequest_SortTarget
- type RangeResponse
- func (*RangeResponse) Descriptor() ([]byte, []int)
- func (m *RangeResponse) GetCount() int64
- func (m *RangeResponse) GetHeader() *ResponseHeader
- func (m *RangeResponse) GetKvs() []*KeyValue
- func (m *RangeResponse) GetMore() bool
- func (m *RangeResponse) Marshal() (dAtA []byte, err error)
- func (m *RangeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *RangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RangeResponse) ProtoMessage()
- func (m *RangeResponse) Reset()
- func (m *RangeResponse) Size() (n int)
- func (m *RangeResponse) String() string
- func (m *RangeResponse) Unmarshal(dAtA []byte) error
- func (m *RangeResponse) XXX_DiscardUnknown()
- func (m *RangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RangeResponse) XXX_Merge(src proto.Message)
- func (m *RangeResponse) XXX_Size() int
- func (m *RangeResponse) XXX_Unmarshal(b []byte) error
- type RequestOp
- func (*RequestOp) Descriptor() ([]byte, []int)
- func (m *RequestOp) GetRequest() isRequestOp_Request
- func (m *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest
- func (m *RequestOp) GetRequestPut() *PutRequest
- func (m *RequestOp) GetRequestRange() *RangeRequest
- func (m *RequestOp) GetRequestTxn() *TxnRequest
- func (m *RequestOp) Marshal() (dAtA []byte, err error)
- func (m *RequestOp) MarshalTo(dAtA []byte) (int, error)
- func (m *RequestOp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RequestOp) ProtoMessage()
- func (m *RequestOp) Reset()
- func (m *RequestOp) Size() (n int)
- func (m *RequestOp) String() string
- func (m *RequestOp) Unmarshal(dAtA []byte) error
- func (m *RequestOp) XXX_DiscardUnknown()
- func (m *RequestOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestOp) XXX_Merge(src proto.Message)
- func (*RequestOp) XXX_OneofWrappers() []interface{}
- func (m *RequestOp) XXX_Size() int
- func (m *RequestOp) XXX_Unmarshal(b []byte) error
- type RequestOp_RequestDeleteRange
- type RequestOp_RequestPut
- type RequestOp_RequestRange
- type RequestOp_RequestTxn
- type ResponseHeader
- func (*ResponseHeader) Descriptor() ([]byte, []int)
- func (m *ResponseHeader) GetRevision() int64
- func (m *ResponseHeader) Marshal() (dAtA []byte, err error)
- func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResponseHeader) ProtoMessage()
- func (m *ResponseHeader) Reset()
- func (m *ResponseHeader) Size() (n int)
- func (m *ResponseHeader) String() string
- func (m *ResponseHeader) Unmarshal(dAtA []byte) error
- func (m *ResponseHeader) XXX_DiscardUnknown()
- func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResponseHeader) XXX_Merge(src proto.Message)
- func (m *ResponseHeader) XXX_Size() int
- func (m *ResponseHeader) XXX_Unmarshal(b []byte) error
- type ResponseOp
- func (*ResponseOp) Descriptor() ([]byte, []int)
- func (m *ResponseOp) GetResponse() isResponseOp_Response
- func (m *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse
- func (m *ResponseOp) GetResponsePut() *PutResponse
- func (m *ResponseOp) GetResponseRange() *RangeResponse
- func (m *ResponseOp) GetResponseTxn() *TxnResponse
- func (m *ResponseOp) Marshal() (dAtA []byte, err error)
- func (m *ResponseOp) MarshalTo(dAtA []byte) (int, error)
- func (m *ResponseOp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResponseOp) ProtoMessage()
- func (m *ResponseOp) Reset()
- func (m *ResponseOp) Size() (n int)
- func (m *ResponseOp) String() string
- func (m *ResponseOp) Unmarshal(dAtA []byte) error
- func (m *ResponseOp) XXX_DiscardUnknown()
- func (m *ResponseOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResponseOp) XXX_Merge(src proto.Message)
- func (*ResponseOp) XXX_OneofWrappers() []interface{}
- func (m *ResponseOp) XXX_Size() int
- func (m *ResponseOp) XXX_Unmarshal(b []byte) error
- type ResponseOp_ResponseDeleteRange
- type ResponseOp_ResponsePut
- type ResponseOp_ResponseRange
- type ResponseOp_ResponseTxn
- type SnapshotRequest
- func (*SnapshotRequest) Descriptor() ([]byte, []int)
- func (m *SnapshotRequest) Marshal() (dAtA []byte, err error)
- func (m *SnapshotRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SnapshotRequest) ProtoMessage()
- func (m *SnapshotRequest) Reset()
- func (m *SnapshotRequest) Size() (n int)
- func (m *SnapshotRequest) String() string
- func (m *SnapshotRequest) Unmarshal(dAtA []byte) error
- func (m *SnapshotRequest) XXX_DiscardUnknown()
- func (m *SnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SnapshotRequest) XXX_Merge(src proto.Message)
- func (m *SnapshotRequest) XXX_Size() int
- func (m *SnapshotRequest) XXX_Unmarshal(b []byte) error
- type SnapshotResponse
- func (*SnapshotResponse) Descriptor() ([]byte, []int)
- func (m *SnapshotResponse) GetBlob() []byte
- func (m *SnapshotResponse) GetHeader() *ResponseHeader
- func (m *SnapshotResponse) GetRemainingBytes() uint64
- func (m *SnapshotResponse) Marshal() (dAtA []byte, err error)
- func (m *SnapshotResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *SnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SnapshotResponse) ProtoMessage()
- func (m *SnapshotResponse) Reset()
- func (m *SnapshotResponse) Size() (n int)
- func (m *SnapshotResponse) String() string
- func (m *SnapshotResponse) Unmarshal(dAtA []byte) error
- func (m *SnapshotResponse) XXX_DiscardUnknown()
- func (m *SnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SnapshotResponse) XXX_Merge(src proto.Message)
- func (m *SnapshotResponse) XXX_Size() int
- func (m *SnapshotResponse) XXX_Unmarshal(b []byte) error
- type TxnRequest
- func (*TxnRequest) Descriptor() ([]byte, []int)
- func (m *TxnRequest) GetCompare() []*Compare
- func (m *TxnRequest) GetFailure() []*RequestOp
- func (m *TxnRequest) GetSuccess() []*RequestOp
- func (m *TxnRequest) Marshal() (dAtA []byte, err error)
- func (m *TxnRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *TxnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxnRequest) ProtoMessage()
- func (m *TxnRequest) Reset()
- func (m *TxnRequest) Size() (n int)
- func (m *TxnRequest) String() string
- func (m *TxnRequest) Unmarshal(dAtA []byte) error
- func (m *TxnRequest) XXX_DiscardUnknown()
- func (m *TxnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxnRequest) XXX_Merge(src proto.Message)
- func (m *TxnRequest) XXX_Size() int
- func (m *TxnRequest) XXX_Unmarshal(b []byte) error
- type TxnResponse
- func (*TxnResponse) Descriptor() ([]byte, []int)
- func (m *TxnResponse) GetHeader() *ResponseHeader
- func (m *TxnResponse) GetResponses() []*ResponseOp
- func (m *TxnResponse) GetSucceeded() bool
- func (m *TxnResponse) Marshal() (dAtA []byte, err error)
- func (m *TxnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *TxnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxnResponse) ProtoMessage()
- func (m *TxnResponse) Reset()
- func (m *TxnResponse) Size() (n int)
- func (m *TxnResponse) String() string
- func (m *TxnResponse) Unmarshal(dAtA []byte) error
- func (m *TxnResponse) XXX_DiscardUnknown()
- func (m *TxnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxnResponse) XXX_Merge(src proto.Message)
- func (m *TxnResponse) XXX_Size() int
- func (m *TxnResponse) XXX_Unmarshal(b []byte) error
- type WatchCancelRequest
- func (*WatchCancelRequest) Descriptor() ([]byte, []int)
- func (m *WatchCancelRequest) GetWatchId() int64
- func (m *WatchCancelRequest) Marshal() (dAtA []byte, err error)
- func (m *WatchCancelRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *WatchCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WatchCancelRequest) ProtoMessage()
- func (m *WatchCancelRequest) Reset()
- func (m *WatchCancelRequest) Size() (n int)
- func (m *WatchCancelRequest) String() string
- func (m *WatchCancelRequest) Unmarshal(dAtA []byte) error
- func (m *WatchCancelRequest) XXX_DiscardUnknown()
- func (m *WatchCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WatchCancelRequest) XXX_Merge(src proto.Message)
- func (m *WatchCancelRequest) XXX_Size() int
- func (m *WatchCancelRequest) XXX_Unmarshal(b []byte) error
- type WatchCreateRequest
- func (*WatchCreateRequest) Descriptor() ([]byte, []int)
- func (m *WatchCreateRequest) GetFilters() []WatchCreateRequest_FilterType
- func (m *WatchCreateRequest) GetFragment() bool
- func (m *WatchCreateRequest) GetKey() []byte
- func (m *WatchCreateRequest) GetPrevKv() bool
- func (m *WatchCreateRequest) GetProgressNotify() bool
- func (m *WatchCreateRequest) GetRangeEnd() []byte
- func (m *WatchCreateRequest) GetStartRevision() int64
- func (m *WatchCreateRequest) GetWatchId() int64
- func (m *WatchCreateRequest) Marshal() (dAtA []byte, err error)
- func (m *WatchCreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *WatchCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WatchCreateRequest) ProtoMessage()
- func (m *WatchCreateRequest) Reset()
- func (m *WatchCreateRequest) Size() (n int)
- func (m *WatchCreateRequest) String() string
- func (m *WatchCreateRequest) Unmarshal(dAtA []byte) error
- func (m *WatchCreateRequest) XXX_DiscardUnknown()
- func (m *WatchCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WatchCreateRequest) XXX_Merge(src proto.Message)
- func (m *WatchCreateRequest) XXX_Size() int
- func (m *WatchCreateRequest) XXX_Unmarshal(b []byte) error
- type WatchCreateRequest_FilterType
- type WatchProgressRequest
- func (*WatchProgressRequest) Descriptor() ([]byte, []int)
- func (m *WatchProgressRequest) Marshal() (dAtA []byte, err error)
- func (m *WatchProgressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *WatchProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WatchProgressRequest) ProtoMessage()
- func (m *WatchProgressRequest) Reset()
- func (m *WatchProgressRequest) Size() (n int)
- func (m *WatchProgressRequest) String() string
- func (m *WatchProgressRequest) Unmarshal(dAtA []byte) error
- func (m *WatchProgressRequest) XXX_DiscardUnknown()
- func (m *WatchProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WatchProgressRequest) XXX_Merge(src proto.Message)
- func (m *WatchProgressRequest) XXX_Size() int
- func (m *WatchProgressRequest) XXX_Unmarshal(b []byte) error
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)
- func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest
- func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest
- func (m *WatchRequest) GetProgressRequest() *WatchProgressRequest
- func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion
- func (m *WatchRequest) Marshal() (dAtA []byte, err error)
- func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WatchRequest) ProtoMessage()
- func (m *WatchRequest) Reset()
- func (m *WatchRequest) Size() (n int)
- func (m *WatchRequest) String() string
- func (m *WatchRequest) Unmarshal(dAtA []byte) error
- func (m *WatchRequest) XXX_DiscardUnknown()
- func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WatchRequest) XXX_Merge(src proto.Message)
- func (*WatchRequest) XXX_OneofWrappers() []interface{}
- func (m *WatchRequest) XXX_Size() int
- func (m *WatchRequest) XXX_Unmarshal(b []byte) error
- type WatchRequest_CancelRequest
- type WatchRequest_CreateRequest
- type WatchRequest_ProgressRequest
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)
- func (m *WatchResponse) GetCancelReason() string
- func (m *WatchResponse) GetCanceled() bool
- func (m *WatchResponse) GetCompactRevision() int64
- func (m *WatchResponse) GetCreated() bool
- func (m *WatchResponse) GetEvents() []*Event
- func (m *WatchResponse) GetFragment() bool
- func (m *WatchResponse) GetHeader() *ResponseHeader
- func (m *WatchResponse) GetWatchId() int64
- func (m *WatchResponse) Marshal() (dAtA []byte, err error)
- func (m *WatchResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *WatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WatchResponse) ProtoMessage()
- func (m *WatchResponse) Reset()
- func (m *WatchResponse) Size() (n int)
- func (m *WatchResponse) String() string
- func (m *WatchResponse) Unmarshal(dAtA []byte) error
- func (m *WatchResponse) XXX_DiscardUnknown()
- func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WatchResponse) XXX_Merge(src proto.Message)
- func (m *WatchResponse) XXX_Size() int
- func (m *WatchResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthKv = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowKv = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupKv = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthLease = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLease = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLease = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group") )
var Compare_CompareResult_name = map[int32]string{
0: "EQUAL",
1: "GREATER",
2: "LESS",
3: "NOT_EQUAL",
}
var Compare_CompareResult_value = map[string]int32{
"EQUAL": 0,
"GREATER": 1,
"LESS": 2,
"NOT_EQUAL": 3,
}
var Compare_CompareTarget_name = map[int32]string{
0: "VERSION",
1: "CREATE",
2: "MOD",
3: "VALUE",
4: "LEASE",
}
var Compare_CompareTarget_value = map[string]int32{
"VERSION": 0,
"CREATE": 1,
"MOD": 2,
"VALUE": 3,
"LEASE": 4,
}
var Event_EventType_name = map[int32]string{
0: "PUT",
1: "DELETE",
}
var Event_EventType_value = map[string]int32{
"PUT": 0,
"DELETE": 1,
}
var RangeRequest_SortOrder_name = map[int32]string{
0: "NONE",
1: "ASCEND",
2: "DESCEND",
}
var RangeRequest_SortOrder_value = map[string]int32{
"NONE": 0,
"ASCEND": 1,
"DESCEND": 2,
}
var RangeRequest_SortTarget_name = map[int32]string{
0: "KEY",
1: "VERSION",
2: "CREATE",
3: "MOD",
4: "VALUE",
}
var RangeRequest_SortTarget_value = map[string]int32{
"KEY": 0,
"VERSION": 1,
"CREATE": 2,
"MOD": 3,
"VALUE": 4,
}
var WatchCreateRequest_FilterType_name = map[int32]string{
0: "NOPUT",
1: "NODELETE",
}
var WatchCreateRequest_FilterType_value = map[string]int32{
"NOPUT": 0,
"NODELETE": 1,
}
Functions ¶
func NewLoggablePutRequest ¶
func NewLoggablePutRequest(request *PutRequest) *loggablePutRequest
func NewLoggableTxnRequest ¶
func NewLoggableTxnRequest(request *TxnRequest) *txnRequestStringer
Types ¶
type CompactionRequest ¶
type CompactionRequest struct { // revision is the key-value store revision for the compaction operation. Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"` // physical is set so the RPC will wait until the compaction is physically // applied to the local database such that compacted entries are totally // removed from the backend database. Physical bool `protobuf:"varint,2,opt,name=physical,proto3" json:"physical,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CompactionRequest compacts the key-value store up to a given revision. All superseded keys with a revision less than the compaction revision will be removed.
func (*CompactionRequest) Descriptor ¶
func (*CompactionRequest) Descriptor() ([]byte, []int)
func (*CompactionRequest) GetPhysical ¶
func (m *CompactionRequest) GetPhysical() bool
func (*CompactionRequest) GetRevision ¶
func (m *CompactionRequest) GetRevision() int64
func (*CompactionRequest) Marshal ¶
func (m *CompactionRequest) Marshal() (dAtA []byte, err error)
func (*CompactionRequest) MarshalTo ¶
func (m *CompactionRequest) MarshalTo(dAtA []byte) (int, error)
func (*CompactionRequest) MarshalToSizedBuffer ¶
func (m *CompactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CompactionRequest) ProtoMessage ¶
func (*CompactionRequest) ProtoMessage()
func (*CompactionRequest) Reset ¶
func (m *CompactionRequest) Reset()
func (*CompactionRequest) Size ¶
func (m *CompactionRequest) Size() (n int)
func (*CompactionRequest) String ¶
func (m *CompactionRequest) String() string
func (*CompactionRequest) Unmarshal ¶
func (m *CompactionRequest) Unmarshal(dAtA []byte) error
func (*CompactionRequest) XXX_DiscardUnknown ¶
func (m *CompactionRequest) XXX_DiscardUnknown()
func (*CompactionRequest) XXX_Marshal ¶
func (m *CompactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompactionRequest) XXX_Merge ¶
func (m *CompactionRequest) XXX_Merge(src proto.Message)
func (*CompactionRequest) XXX_Size ¶
func (m *CompactionRequest) XXX_Size() int
func (*CompactionRequest) XXX_Unmarshal ¶
func (m *CompactionRequest) XXX_Unmarshal(b []byte) error
type CompactionResponse ¶
type CompactionResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CompactionResponse) Descriptor ¶
func (*CompactionResponse) Descriptor() ([]byte, []int)
func (*CompactionResponse) GetHeader ¶
func (m *CompactionResponse) GetHeader() *ResponseHeader
func (*CompactionResponse) Marshal ¶
func (m *CompactionResponse) Marshal() (dAtA []byte, err error)
func (*CompactionResponse) MarshalTo ¶
func (m *CompactionResponse) MarshalTo(dAtA []byte) (int, error)
func (*CompactionResponse) MarshalToSizedBuffer ¶
func (m *CompactionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CompactionResponse) ProtoMessage ¶
func (*CompactionResponse) ProtoMessage()
func (*CompactionResponse) Reset ¶
func (m *CompactionResponse) Reset()
func (*CompactionResponse) Size ¶
func (m *CompactionResponse) Size() (n int)
func (*CompactionResponse) String ¶
func (m *CompactionResponse) String() string
func (*CompactionResponse) Unmarshal ¶
func (m *CompactionResponse) Unmarshal(dAtA []byte) error
func (*CompactionResponse) XXX_DiscardUnknown ¶
func (m *CompactionResponse) XXX_DiscardUnknown()
func (*CompactionResponse) XXX_Marshal ¶
func (m *CompactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompactionResponse) XXX_Merge ¶
func (m *CompactionResponse) XXX_Merge(src proto.Message)
func (*CompactionResponse) XXX_Size ¶
func (m *CompactionResponse) XXX_Size() int
func (*CompactionResponse) XXX_Unmarshal ¶
func (m *CompactionResponse) XXX_Unmarshal(b []byte) error
type Compare ¶
type Compare struct { // result is logical comparison operation for this comparison. Result Compare_CompareResult `protobuf:"varint,1,opt,name=result,proto3,enum=mvccpb.Compare_CompareResult" json:"result,omitempty"` // target is the key-value field to inspect for the comparison. Target Compare_CompareTarget `protobuf:"varint,2,opt,name=target,proto3,enum=mvccpb.Compare_CompareTarget" json:"target,omitempty"` // key is the subject key for the comparison operation. Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // Types that are valid to be assigned to TargetUnion: // *Compare_Version // *Compare_CreateRevision // *Compare_ModRevision // *Compare_Value // *Compare_Lease TargetUnion isCompare_TargetUnion `protobuf_oneof:"target_union"` // range_end compares the given target to all keys in the range [key, // range_end). See RangeRequest for more details on key ranges. RangeEnd []byte `protobuf:"bytes,64,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Compare) Descriptor ¶
func (*Compare) GetCreateRevision ¶
func (*Compare) GetModRevision ¶
func (*Compare) GetRangeEnd ¶
func (*Compare) GetResult ¶
func (m *Compare) GetResult() Compare_CompareResult
func (*Compare) GetTarget ¶
func (m *Compare) GetTarget() Compare_CompareTarget
func (*Compare) GetTargetUnion ¶
func (m *Compare) GetTargetUnion() isCompare_TargetUnion
func (*Compare) GetVersion ¶
func (*Compare) MarshalToSizedBuffer ¶
func (*Compare) ProtoMessage ¶
func (*Compare) ProtoMessage()
func (*Compare) XXX_DiscardUnknown ¶
func (m *Compare) XXX_DiscardUnknown()
func (*Compare) XXX_Marshal ¶
func (*Compare) XXX_OneofWrappers ¶
func (*Compare) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Compare) XXX_Unmarshal ¶
type Compare_CompareResult ¶
type Compare_CompareResult int32
const ( Compare_EQUAL Compare_CompareResult = 0 Compare_GREATER Compare_CompareResult = 1 Compare_LESS Compare_CompareResult = 2 Compare_NOT_EQUAL Compare_CompareResult = 3 )
func (Compare_CompareResult) EnumDescriptor ¶
func (Compare_CompareResult) EnumDescriptor() ([]byte, []int)
func (Compare_CompareResult) String ¶
func (x Compare_CompareResult) String() string
type Compare_CompareTarget ¶
type Compare_CompareTarget int32
const ( Compare_VERSION Compare_CompareTarget = 0 Compare_CREATE Compare_CompareTarget = 1 Compare_MOD Compare_CompareTarget = 2 Compare_VALUE Compare_CompareTarget = 3 Compare_LEASE Compare_CompareTarget = 4 )
func (Compare_CompareTarget) EnumDescriptor ¶
func (Compare_CompareTarget) EnumDescriptor() ([]byte, []int)
func (Compare_CompareTarget) String ¶
func (x Compare_CompareTarget) String() string
type Compare_CreateRevision ¶
type Compare_CreateRevision struct {
CreateRevision int64 `protobuf:"varint,5,opt,name=create_revision,json=createRevision,proto3,oneof" json:"create_revision,omitempty"`
}
func (*Compare_CreateRevision) MarshalTo ¶
func (m *Compare_CreateRevision) MarshalTo(dAtA []byte) (int, error)
func (*Compare_CreateRevision) MarshalToSizedBuffer ¶
func (m *Compare_CreateRevision) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Compare_CreateRevision) Size ¶
func (m *Compare_CreateRevision) Size() (n int)
type Compare_Lease ¶
type Compare_Lease struct {
Lease int64 `protobuf:"varint,8,opt,name=lease,proto3,oneof" json:"lease,omitempty"`
}
func (*Compare_Lease) MarshalToSizedBuffer ¶
func (m *Compare_Lease) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Compare_Lease) Size ¶
func (m *Compare_Lease) Size() (n int)
type Compare_ModRevision ¶
type Compare_ModRevision struct {
ModRevision int64 `protobuf:"varint,6,opt,name=mod_revision,json=modRevision,proto3,oneof" json:"mod_revision,omitempty"`
}
func (*Compare_ModRevision) MarshalTo ¶
func (m *Compare_ModRevision) MarshalTo(dAtA []byte) (int, error)
func (*Compare_ModRevision) MarshalToSizedBuffer ¶
func (m *Compare_ModRevision) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Compare_ModRevision) Size ¶
func (m *Compare_ModRevision) Size() (n int)
type Compare_Value ¶
type Compare_Value struct {
Value []byte `protobuf:"bytes,7,opt,name=value,proto3,oneof" json:"value,omitempty"`
}
func (*Compare_Value) MarshalToSizedBuffer ¶
func (m *Compare_Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Compare_Value) Size ¶
func (m *Compare_Value) Size() (n int)
type Compare_Version ¶
type Compare_Version struct {
Version int64 `protobuf:"varint,4,opt,name=version,proto3,oneof" json:"version,omitempty"`
}
func (*Compare_Version) MarshalToSizedBuffer ¶
func (m *Compare_Version) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Compare_Version) Size ¶
func (m *Compare_Version) Size() (n int)
type DeleteRangeRequest ¶
type DeleteRangeRequest struct { // key is the first key to delete in the range. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // range_end is the key following the last key to delete for the range [key, // range_end). If range_end is not given, the range is defined to contain only // the key argument. If range_end is one bit larger than the given key, then // the range is all the keys with the prefix (the given key). If range_end is // '\0', the range is all keys greater than or equal to the key argument. RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` // If prev_kv is set, etcd gets the previous key-value pairs before deleting // it. The previous key-value pairs will be returned in the delete response. PrevKv bool `protobuf:"varint,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteRangeRequest) Descriptor ¶
func (*DeleteRangeRequest) Descriptor() ([]byte, []int)
func (*DeleteRangeRequest) GetKey ¶
func (m *DeleteRangeRequest) GetKey() []byte
func (*DeleteRangeRequest) GetPrevKv ¶
func (m *DeleteRangeRequest) GetPrevKv() bool
func (*DeleteRangeRequest) GetRangeEnd ¶
func (m *DeleteRangeRequest) GetRangeEnd() []byte
func (*DeleteRangeRequest) Marshal ¶
func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error)
func (*DeleteRangeRequest) MarshalTo ¶
func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error)
func (*DeleteRangeRequest) MarshalToSizedBuffer ¶
func (m *DeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteRangeRequest) ProtoMessage ¶
func (*DeleteRangeRequest) ProtoMessage()
func (*DeleteRangeRequest) Reset ¶
func (m *DeleteRangeRequest) Reset()
func (*DeleteRangeRequest) Size ¶
func (m *DeleteRangeRequest) Size() (n int)
func (*DeleteRangeRequest) String ¶
func (m *DeleteRangeRequest) String() string
func (*DeleteRangeRequest) Unmarshal ¶
func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error
func (*DeleteRangeRequest) XXX_DiscardUnknown ¶
func (m *DeleteRangeRequest) XXX_DiscardUnknown()
func (*DeleteRangeRequest) XXX_Marshal ¶
func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRangeRequest) XXX_Merge ¶
func (m *DeleteRangeRequest) XXX_Merge(src proto.Message)
func (*DeleteRangeRequest) XXX_Size ¶
func (m *DeleteRangeRequest) XXX_Size() int
func (*DeleteRangeRequest) XXX_Unmarshal ¶
func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error
type DeleteRangeResponse ¶
type DeleteRangeResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // deleted is the number of keys deleted by the delete range request. Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` // if prev_kv is set in the request, the previous key-value pairs will be // returned. PrevKvs []*KeyValue `protobuf:"bytes,3,rep,name=prev_kvs,json=prevKvs,proto3" json:"prev_kvs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteRangeResponse) Descriptor ¶
func (*DeleteRangeResponse) Descriptor() ([]byte, []int)
func (*DeleteRangeResponse) GetDeleted ¶
func (m *DeleteRangeResponse) GetDeleted() int64
func (*DeleteRangeResponse) GetHeader ¶
func (m *DeleteRangeResponse) GetHeader() *ResponseHeader
func (*DeleteRangeResponse) GetPrevKvs ¶
func (m *DeleteRangeResponse) GetPrevKvs() []*KeyValue
func (*DeleteRangeResponse) Marshal ¶
func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error)
func (*DeleteRangeResponse) MarshalTo ¶
func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error)
func (*DeleteRangeResponse) MarshalToSizedBuffer ¶
func (m *DeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteRangeResponse) ProtoMessage ¶
func (*DeleteRangeResponse) ProtoMessage()
func (*DeleteRangeResponse) Reset ¶
func (m *DeleteRangeResponse) Reset()
func (*DeleteRangeResponse) Size ¶
func (m *DeleteRangeResponse) Size() (n int)
func (*DeleteRangeResponse) String ¶
func (m *DeleteRangeResponse) String() string
func (*DeleteRangeResponse) Unmarshal ¶
func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error
func (*DeleteRangeResponse) XXX_DiscardUnknown ¶
func (m *DeleteRangeResponse) XXX_DiscardUnknown()
func (*DeleteRangeResponse) XXX_Marshal ¶
func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRangeResponse) XXX_Merge ¶
func (m *DeleteRangeResponse) XXX_Merge(src proto.Message)
func (*DeleteRangeResponse) XXX_Size ¶
func (m *DeleteRangeResponse) XXX_Size() int
func (*DeleteRangeResponse) XXX_Unmarshal ¶
func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error
type Event ¶
type Event struct { // type is the kind of event. If type is a PUT, it indicates // new data has been stored to the key. If type is a DELETE, // it indicates the key was deleted. Type Event_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=mvccpb.Event_EventType" json:"type,omitempty"` // kv holds the KeyValue for the event. // A PUT event contains current kv pair. // A PUT event with kv.Version=1 indicates the creation of a key. // A DELETE/EXPIRE event contains the deleted key with // its modification revision set to the revision of deletion. Kv *KeyValue `protobuf:"bytes,2,opt,name=kv,proto3" json:"kv,omitempty"` // prev_kv holds the key-value pair before the event happens. PrevKv *KeyValue `protobuf:"bytes,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type Event_EventType ¶
type Event_EventType int32
const ( PUT Event_EventType = 0 DELETE Event_EventType = 1 )
func (Event_EventType) EnumDescriptor ¶
func (Event_EventType) EnumDescriptor() ([]byte, []int)
func (Event_EventType) String ¶
func (x Event_EventType) String() string
type HashKVRequest ¶
type HashKVRequest struct { // revision is the key-value store revision for the hash operation. Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HashKVRequest) Descriptor ¶
func (*HashKVRequest) Descriptor() ([]byte, []int)
func (*HashKVRequest) GetRevision ¶
func (m *HashKVRequest) GetRevision() int64
func (*HashKVRequest) Marshal ¶
func (m *HashKVRequest) Marshal() (dAtA []byte, err error)
func (*HashKVRequest) MarshalToSizedBuffer ¶
func (m *HashKVRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HashKVRequest) ProtoMessage ¶
func (*HashKVRequest) ProtoMessage()
func (*HashKVRequest) Reset ¶
func (m *HashKVRequest) Reset()
func (*HashKVRequest) Size ¶
func (m *HashKVRequest) Size() (n int)
func (*HashKVRequest) String ¶
func (m *HashKVRequest) String() string
func (*HashKVRequest) Unmarshal ¶
func (m *HashKVRequest) Unmarshal(dAtA []byte) error
func (*HashKVRequest) XXX_DiscardUnknown ¶
func (m *HashKVRequest) XXX_DiscardUnknown()
func (*HashKVRequest) XXX_Marshal ¶
func (m *HashKVRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HashKVRequest) XXX_Merge ¶
func (m *HashKVRequest) XXX_Merge(src proto.Message)
func (*HashKVRequest) XXX_Size ¶
func (m *HashKVRequest) XXX_Size() int
func (*HashKVRequest) XXX_Unmarshal ¶
func (m *HashKVRequest) XXX_Unmarshal(b []byte) error
type HashKVResponse ¶
type HashKVResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // hash is the hash value computed from the responding member's MVCC keys up // to a given revision. Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"` // compact_revision is the compacted revision of key-value store when hash // begins. CompactRevision int64 `protobuf:"varint,3,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HashKVResponse) Descriptor ¶
func (*HashKVResponse) Descriptor() ([]byte, []int)
func (*HashKVResponse) GetCompactRevision ¶
func (m *HashKVResponse) GetCompactRevision() int64
func (*HashKVResponse) GetHash ¶
func (m *HashKVResponse) GetHash() uint32
func (*HashKVResponse) GetHeader ¶
func (m *HashKVResponse) GetHeader() *ResponseHeader
func (*HashKVResponse) Marshal ¶
func (m *HashKVResponse) Marshal() (dAtA []byte, err error)
func (*HashKVResponse) MarshalToSizedBuffer ¶
func (m *HashKVResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HashKVResponse) ProtoMessage ¶
func (*HashKVResponse) ProtoMessage()
func (*HashKVResponse) Reset ¶
func (m *HashKVResponse) Reset()
func (*HashKVResponse) Size ¶
func (m *HashKVResponse) Size() (n int)
func (*HashKVResponse) String ¶
func (m *HashKVResponse) String() string
func (*HashKVResponse) Unmarshal ¶
func (m *HashKVResponse) Unmarshal(dAtA []byte) error
func (*HashKVResponse) XXX_DiscardUnknown ¶
func (m *HashKVResponse) XXX_DiscardUnknown()
func (*HashKVResponse) XXX_Marshal ¶
func (m *HashKVResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HashKVResponse) XXX_Merge ¶
func (m *HashKVResponse) XXX_Merge(src proto.Message)
func (*HashKVResponse) XXX_Size ¶
func (m *HashKVResponse) XXX_Size() int
func (*HashKVResponse) XXX_Unmarshal ¶
func (m *HashKVResponse) XXX_Unmarshal(b []byte) error
type HashRequest ¶
type HashRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HashRequest) Descriptor ¶
func (*HashRequest) Descriptor() ([]byte, []int)
func (*HashRequest) Marshal ¶
func (m *HashRequest) Marshal() (dAtA []byte, err error)
func (*HashRequest) MarshalToSizedBuffer ¶
func (m *HashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HashRequest) ProtoMessage ¶
func (*HashRequest) ProtoMessage()
func (*HashRequest) Reset ¶
func (m *HashRequest) Reset()
func (*HashRequest) Size ¶
func (m *HashRequest) Size() (n int)
func (*HashRequest) String ¶
func (m *HashRequest) String() string
func (*HashRequest) Unmarshal ¶
func (m *HashRequest) Unmarshal(dAtA []byte) error
func (*HashRequest) XXX_DiscardUnknown ¶
func (m *HashRequest) XXX_DiscardUnknown()
func (*HashRequest) XXX_Marshal ¶
func (m *HashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HashRequest) XXX_Merge ¶
func (m *HashRequest) XXX_Merge(src proto.Message)
func (*HashRequest) XXX_Size ¶
func (m *HashRequest) XXX_Size() int
func (*HashRequest) XXX_Unmarshal ¶
func (m *HashRequest) XXX_Unmarshal(b []byte) error
type HashResponse ¶
type HashResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // hash is the hash value computed from the responding member's KV's backend. Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HashResponse) Descriptor ¶
func (*HashResponse) Descriptor() ([]byte, []int)
func (*HashResponse) GetHash ¶
func (m *HashResponse) GetHash() uint32
func (*HashResponse) GetHeader ¶
func (m *HashResponse) GetHeader() *ResponseHeader
func (*HashResponse) Marshal ¶
func (m *HashResponse) Marshal() (dAtA []byte, err error)
func (*HashResponse) MarshalToSizedBuffer ¶
func (m *HashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HashResponse) ProtoMessage ¶
func (*HashResponse) ProtoMessage()
func (*HashResponse) Reset ¶
func (m *HashResponse) Reset()
func (*HashResponse) Size ¶
func (m *HashResponse) Size() (n int)
func (*HashResponse) String ¶
func (m *HashResponse) String() string
func (*HashResponse) Unmarshal ¶
func (m *HashResponse) Unmarshal(dAtA []byte) error
func (*HashResponse) XXX_DiscardUnknown ¶
func (m *HashResponse) XXX_DiscardUnknown()
func (*HashResponse) XXX_Marshal ¶
func (m *HashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HashResponse) XXX_Merge ¶
func (m *HashResponse) XXX_Merge(src proto.Message)
func (*HashResponse) XXX_Size ¶
func (m *HashResponse) XXX_Size() int
func (*HashResponse) XXX_Unmarshal ¶
func (m *HashResponse) XXX_Unmarshal(b []byte) error
type KeyValue ¶
type KeyValue struct { // key is the key in bytes. An empty key is not allowed. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // create_revision is the revision of last creation on this key. CreateRevision int64 `protobuf:"varint,2,opt,name=create_revision,json=createRevision,proto3" json:"create_revision,omitempty"` // mod_revision is the revision of last modification on this key. ModRevision int64 `protobuf:"varint,3,opt,name=mod_revision,json=modRevision,proto3" json:"mod_revision,omitempty"` // version is the version of the key. A deletion resets // the version to zero and any modification of the key // increases its version. Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` // value is the value held by the key, in bytes. Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` // lease is the ID of the lease that attached to key. // When the attached lease expires, the key will be deleted. // If lease is 0, then no lease is attached to the key. Lease int64 `protobuf:"varint,6,opt,name=lease,proto3" json:"lease,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyValue) Descriptor ¶
func (*KeyValue) MarshalToSizedBuffer ¶
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) XXX_DiscardUnknown ¶
func (m *KeyValue) XXX_DiscardUnknown()
func (*KeyValue) XXX_Marshal ¶
func (*KeyValue) XXX_Unmarshal ¶
type Lease ¶
type Lease struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` TTL int64 `protobuf:"varint,2,opt,name=TTL,proto3" json:"TTL,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Lease) Descriptor ¶
func (*Lease) ProtoMessage ¶
func (*Lease) ProtoMessage()
func (*Lease) XXX_DiscardUnknown ¶
func (m *Lease) XXX_DiscardUnknown()
func (*Lease) XXX_Marshal ¶
func (*Lease) XXX_Unmarshal ¶
type LeaseGrantRequest ¶
type LeaseGrantRequest struct { // TTL is the advisory time-to-live in seconds. Expired lease will return -1. TTL int64 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"` // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses // an ID. ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseGrantRequest) Descriptor ¶
func (*LeaseGrantRequest) Descriptor() ([]byte, []int)
func (*LeaseGrantRequest) GetID ¶
func (m *LeaseGrantRequest) GetID() int64
func (*LeaseGrantRequest) GetTTL ¶
func (m *LeaseGrantRequest) GetTTL() int64
func (*LeaseGrantRequest) Marshal ¶
func (m *LeaseGrantRequest) Marshal() (dAtA []byte, err error)
func (*LeaseGrantRequest) MarshalTo ¶
func (m *LeaseGrantRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseGrantRequest) MarshalToSizedBuffer ¶
func (m *LeaseGrantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseGrantRequest) ProtoMessage ¶
func (*LeaseGrantRequest) ProtoMessage()
func (*LeaseGrantRequest) Reset ¶
func (m *LeaseGrantRequest) Reset()
func (*LeaseGrantRequest) Size ¶
func (m *LeaseGrantRequest) Size() (n int)
func (*LeaseGrantRequest) String ¶
func (m *LeaseGrantRequest) String() string
func (*LeaseGrantRequest) Unmarshal ¶
func (m *LeaseGrantRequest) Unmarshal(dAtA []byte) error
func (*LeaseGrantRequest) XXX_DiscardUnknown ¶
func (m *LeaseGrantRequest) XXX_DiscardUnknown()
func (*LeaseGrantRequest) XXX_Marshal ¶
func (m *LeaseGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseGrantRequest) XXX_Merge ¶
func (m *LeaseGrantRequest) XXX_Merge(src proto.Message)
func (*LeaseGrantRequest) XXX_Size ¶
func (m *LeaseGrantRequest) XXX_Size() int
func (*LeaseGrantRequest) XXX_Unmarshal ¶
func (m *LeaseGrantRequest) XXX_Unmarshal(b []byte) error
type LeaseGrantResponse ¶
type LeaseGrantResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // ID is the lease ID for the granted lease. ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` // TTL is the server chosen lease time-to-live in seconds. TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseGrantResponse) Descriptor ¶
func (*LeaseGrantResponse) Descriptor() ([]byte, []int)
func (*LeaseGrantResponse) GetError ¶
func (m *LeaseGrantResponse) GetError() string
func (*LeaseGrantResponse) GetHeader ¶
func (m *LeaseGrantResponse) GetHeader() *ResponseHeader
func (*LeaseGrantResponse) GetID ¶
func (m *LeaseGrantResponse) GetID() int64
func (*LeaseGrantResponse) GetTTL ¶
func (m *LeaseGrantResponse) GetTTL() int64
func (*LeaseGrantResponse) Marshal ¶
func (m *LeaseGrantResponse) Marshal() (dAtA []byte, err error)
func (*LeaseGrantResponse) MarshalTo ¶
func (m *LeaseGrantResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseGrantResponse) MarshalToSizedBuffer ¶
func (m *LeaseGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseGrantResponse) ProtoMessage ¶
func (*LeaseGrantResponse) ProtoMessage()
func (*LeaseGrantResponse) Reset ¶
func (m *LeaseGrantResponse) Reset()
func (*LeaseGrantResponse) Size ¶
func (m *LeaseGrantResponse) Size() (n int)
func (*LeaseGrantResponse) String ¶
func (m *LeaseGrantResponse) String() string
func (*LeaseGrantResponse) Unmarshal ¶
func (m *LeaseGrantResponse) Unmarshal(dAtA []byte) error
func (*LeaseGrantResponse) XXX_DiscardUnknown ¶
func (m *LeaseGrantResponse) XXX_DiscardUnknown()
func (*LeaseGrantResponse) XXX_Marshal ¶
func (m *LeaseGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseGrantResponse) XXX_Merge ¶
func (m *LeaseGrantResponse) XXX_Merge(src proto.Message)
func (*LeaseGrantResponse) XXX_Size ¶
func (m *LeaseGrantResponse) XXX_Size() int
func (*LeaseGrantResponse) XXX_Unmarshal ¶
func (m *LeaseGrantResponse) XXX_Unmarshal(b []byte) error
type LeaseInternalRequest ¶
type LeaseInternalRequest struct { LeaseTimeToLiveRequest *LeaseTimeToLiveRequest `protobuf:"bytes,1,opt,name=LeaseTimeToLiveRequest,proto3" json:"LeaseTimeToLiveRequest,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseInternalRequest) Descriptor ¶
func (*LeaseInternalRequest) Descriptor() ([]byte, []int)
func (*LeaseInternalRequest) Marshal ¶
func (m *LeaseInternalRequest) Marshal() (dAtA []byte, err error)
func (*LeaseInternalRequest) MarshalTo ¶
func (m *LeaseInternalRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseInternalRequest) MarshalToSizedBuffer ¶
func (m *LeaseInternalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseInternalRequest) ProtoMessage ¶
func (*LeaseInternalRequest) ProtoMessage()
func (*LeaseInternalRequest) Reset ¶
func (m *LeaseInternalRequest) Reset()
func (*LeaseInternalRequest) Size ¶
func (m *LeaseInternalRequest) Size() (n int)
func (*LeaseInternalRequest) String ¶
func (m *LeaseInternalRequest) String() string
func (*LeaseInternalRequest) Unmarshal ¶
func (m *LeaseInternalRequest) Unmarshal(dAtA []byte) error
func (*LeaseInternalRequest) XXX_DiscardUnknown ¶
func (m *LeaseInternalRequest) XXX_DiscardUnknown()
func (*LeaseInternalRequest) XXX_Marshal ¶
func (m *LeaseInternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseInternalRequest) XXX_Merge ¶
func (m *LeaseInternalRequest) XXX_Merge(src proto.Message)
func (*LeaseInternalRequest) XXX_Size ¶
func (m *LeaseInternalRequest) XXX_Size() int
func (*LeaseInternalRequest) XXX_Unmarshal ¶
func (m *LeaseInternalRequest) XXX_Unmarshal(b []byte) error
type LeaseInternalResponse ¶
type LeaseInternalResponse struct { LeaseTimeToLiveResponse *LeaseTimeToLiveResponse `protobuf:"bytes,1,opt,name=LeaseTimeToLiveResponse,proto3" json:"LeaseTimeToLiveResponse,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseInternalResponse) Descriptor ¶
func (*LeaseInternalResponse) Descriptor() ([]byte, []int)
func (*LeaseInternalResponse) Marshal ¶
func (m *LeaseInternalResponse) Marshal() (dAtA []byte, err error)
func (*LeaseInternalResponse) MarshalTo ¶
func (m *LeaseInternalResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseInternalResponse) MarshalToSizedBuffer ¶
func (m *LeaseInternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseInternalResponse) ProtoMessage ¶
func (*LeaseInternalResponse) ProtoMessage()
func (*LeaseInternalResponse) Reset ¶
func (m *LeaseInternalResponse) Reset()
func (*LeaseInternalResponse) Size ¶
func (m *LeaseInternalResponse) Size() (n int)
func (*LeaseInternalResponse) String ¶
func (m *LeaseInternalResponse) String() string
func (*LeaseInternalResponse) Unmarshal ¶
func (m *LeaseInternalResponse) Unmarshal(dAtA []byte) error
func (*LeaseInternalResponse) XXX_DiscardUnknown ¶
func (m *LeaseInternalResponse) XXX_DiscardUnknown()
func (*LeaseInternalResponse) XXX_Marshal ¶
func (m *LeaseInternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseInternalResponse) XXX_Merge ¶
func (m *LeaseInternalResponse) XXX_Merge(src proto.Message)
func (*LeaseInternalResponse) XXX_Size ¶
func (m *LeaseInternalResponse) XXX_Size() int
func (*LeaseInternalResponse) XXX_Unmarshal ¶
func (m *LeaseInternalResponse) XXX_Unmarshal(b []byte) error
type LeaseKeepAliveRequest ¶
type LeaseKeepAliveRequest struct { // ID is the lease ID for the lease to keep alive. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseKeepAliveRequest) Descriptor ¶
func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int)
func (*LeaseKeepAliveRequest) GetID ¶
func (m *LeaseKeepAliveRequest) GetID() int64
func (*LeaseKeepAliveRequest) Marshal ¶
func (m *LeaseKeepAliveRequest) Marshal() (dAtA []byte, err error)
func (*LeaseKeepAliveRequest) MarshalTo ¶
func (m *LeaseKeepAliveRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseKeepAliveRequest) MarshalToSizedBuffer ¶
func (m *LeaseKeepAliveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseKeepAliveRequest) ProtoMessage ¶
func (*LeaseKeepAliveRequest) ProtoMessage()
func (*LeaseKeepAliveRequest) Reset ¶
func (m *LeaseKeepAliveRequest) Reset()
func (*LeaseKeepAliveRequest) Size ¶
func (m *LeaseKeepAliveRequest) Size() (n int)
func (*LeaseKeepAliveRequest) String ¶
func (m *LeaseKeepAliveRequest) String() string
func (*LeaseKeepAliveRequest) Unmarshal ¶
func (m *LeaseKeepAliveRequest) Unmarshal(dAtA []byte) error
func (*LeaseKeepAliveRequest) XXX_DiscardUnknown ¶
func (m *LeaseKeepAliveRequest) XXX_DiscardUnknown()
func (*LeaseKeepAliveRequest) XXX_Marshal ¶
func (m *LeaseKeepAliveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseKeepAliveRequest) XXX_Merge ¶
func (m *LeaseKeepAliveRequest) XXX_Merge(src proto.Message)
func (*LeaseKeepAliveRequest) XXX_Size ¶
func (m *LeaseKeepAliveRequest) XXX_Size() int
func (*LeaseKeepAliveRequest) XXX_Unmarshal ¶
func (m *LeaseKeepAliveRequest) XXX_Unmarshal(b []byte) error
type LeaseKeepAliveResponse ¶
type LeaseKeepAliveResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // ID is the lease ID from the keep alive request. ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` // TTL is the new time-to-live for the lease. TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseKeepAliveResponse) Descriptor ¶
func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int)
func (*LeaseKeepAliveResponse) GetHeader ¶
func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader
func (*LeaseKeepAliveResponse) GetID ¶
func (m *LeaseKeepAliveResponse) GetID() int64
func (*LeaseKeepAliveResponse) GetTTL ¶
func (m *LeaseKeepAliveResponse) GetTTL() int64
func (*LeaseKeepAliveResponse) Marshal ¶
func (m *LeaseKeepAliveResponse) Marshal() (dAtA []byte, err error)
func (*LeaseKeepAliveResponse) MarshalTo ¶
func (m *LeaseKeepAliveResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseKeepAliveResponse) MarshalToSizedBuffer ¶
func (m *LeaseKeepAliveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseKeepAliveResponse) ProtoMessage ¶
func (*LeaseKeepAliveResponse) ProtoMessage()
func (*LeaseKeepAliveResponse) Reset ¶
func (m *LeaseKeepAliveResponse) Reset()
func (*LeaseKeepAliveResponse) Size ¶
func (m *LeaseKeepAliveResponse) Size() (n int)
func (*LeaseKeepAliveResponse) String ¶
func (m *LeaseKeepAliveResponse) String() string
func (*LeaseKeepAliveResponse) Unmarshal ¶
func (m *LeaseKeepAliveResponse) Unmarshal(dAtA []byte) error
func (*LeaseKeepAliveResponse) XXX_DiscardUnknown ¶
func (m *LeaseKeepAliveResponse) XXX_DiscardUnknown()
func (*LeaseKeepAliveResponse) XXX_Marshal ¶
func (m *LeaseKeepAliveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseKeepAliveResponse) XXX_Merge ¶
func (m *LeaseKeepAliveResponse) XXX_Merge(src proto.Message)
func (*LeaseKeepAliveResponse) XXX_Size ¶
func (m *LeaseKeepAliveResponse) XXX_Size() int
func (*LeaseKeepAliveResponse) XXX_Unmarshal ¶
func (m *LeaseKeepAliveResponse) XXX_Unmarshal(b []byte) error
type LeaseLeasesRequest ¶
type LeaseLeasesRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseLeasesRequest) Descriptor ¶
func (*LeaseLeasesRequest) Descriptor() ([]byte, []int)
func (*LeaseLeasesRequest) Marshal ¶
func (m *LeaseLeasesRequest) Marshal() (dAtA []byte, err error)
func (*LeaseLeasesRequest) MarshalTo ¶
func (m *LeaseLeasesRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseLeasesRequest) MarshalToSizedBuffer ¶
func (m *LeaseLeasesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseLeasesRequest) ProtoMessage ¶
func (*LeaseLeasesRequest) ProtoMessage()
func (*LeaseLeasesRequest) Reset ¶
func (m *LeaseLeasesRequest) Reset()
func (*LeaseLeasesRequest) Size ¶
func (m *LeaseLeasesRequest) Size() (n int)
func (*LeaseLeasesRequest) String ¶
func (m *LeaseLeasesRequest) String() string
func (*LeaseLeasesRequest) Unmarshal ¶
func (m *LeaseLeasesRequest) Unmarshal(dAtA []byte) error
func (*LeaseLeasesRequest) XXX_DiscardUnknown ¶
func (m *LeaseLeasesRequest) XXX_DiscardUnknown()
func (*LeaseLeasesRequest) XXX_Marshal ¶
func (m *LeaseLeasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseLeasesRequest) XXX_Merge ¶
func (m *LeaseLeasesRequest) XXX_Merge(src proto.Message)
func (*LeaseLeasesRequest) XXX_Size ¶
func (m *LeaseLeasesRequest) XXX_Size() int
func (*LeaseLeasesRequest) XXX_Unmarshal ¶
func (m *LeaseLeasesRequest) XXX_Unmarshal(b []byte) error
type LeaseLeasesResponse ¶
type LeaseLeasesResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Leases []*LeaseStatus `protobuf:"bytes,2,rep,name=leases,proto3" json:"leases,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseLeasesResponse) Descriptor ¶
func (*LeaseLeasesResponse) Descriptor() ([]byte, []int)
func (*LeaseLeasesResponse) GetHeader ¶
func (m *LeaseLeasesResponse) GetHeader() *ResponseHeader
func (*LeaseLeasesResponse) GetLeases ¶
func (m *LeaseLeasesResponse) GetLeases() []*LeaseStatus
func (*LeaseLeasesResponse) Marshal ¶
func (m *LeaseLeasesResponse) Marshal() (dAtA []byte, err error)
func (*LeaseLeasesResponse) MarshalTo ¶
func (m *LeaseLeasesResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseLeasesResponse) MarshalToSizedBuffer ¶
func (m *LeaseLeasesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseLeasesResponse) ProtoMessage ¶
func (*LeaseLeasesResponse) ProtoMessage()
func (*LeaseLeasesResponse) Reset ¶
func (m *LeaseLeasesResponse) Reset()
func (*LeaseLeasesResponse) Size ¶
func (m *LeaseLeasesResponse) Size() (n int)
func (*LeaseLeasesResponse) String ¶
func (m *LeaseLeasesResponse) String() string
func (*LeaseLeasesResponse) Unmarshal ¶
func (m *LeaseLeasesResponse) Unmarshal(dAtA []byte) error
func (*LeaseLeasesResponse) XXX_DiscardUnknown ¶
func (m *LeaseLeasesResponse) XXX_DiscardUnknown()
func (*LeaseLeasesResponse) XXX_Marshal ¶
func (m *LeaseLeasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseLeasesResponse) XXX_Merge ¶
func (m *LeaseLeasesResponse) XXX_Merge(src proto.Message)
func (*LeaseLeasesResponse) XXX_Size ¶
func (m *LeaseLeasesResponse) XXX_Size() int
func (*LeaseLeasesResponse) XXX_Unmarshal ¶
func (m *LeaseLeasesResponse) XXX_Unmarshal(b []byte) error
type LeaseRevokeRequest ¶
type LeaseRevokeRequest struct { // ID is the lease ID to revoke. When the ID is revoked, all associated keys // will be deleted. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseRevokeRequest) Descriptor ¶
func (*LeaseRevokeRequest) Descriptor() ([]byte, []int)
func (*LeaseRevokeRequest) GetID ¶
func (m *LeaseRevokeRequest) GetID() int64
func (*LeaseRevokeRequest) Marshal ¶
func (m *LeaseRevokeRequest) Marshal() (dAtA []byte, err error)
func (*LeaseRevokeRequest) MarshalTo ¶
func (m *LeaseRevokeRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseRevokeRequest) MarshalToSizedBuffer ¶
func (m *LeaseRevokeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseRevokeRequest) ProtoMessage ¶
func (*LeaseRevokeRequest) ProtoMessage()
func (*LeaseRevokeRequest) Reset ¶
func (m *LeaseRevokeRequest) Reset()
func (*LeaseRevokeRequest) Size ¶
func (m *LeaseRevokeRequest) Size() (n int)
func (*LeaseRevokeRequest) String ¶
func (m *LeaseRevokeRequest) String() string
func (*LeaseRevokeRequest) Unmarshal ¶
func (m *LeaseRevokeRequest) Unmarshal(dAtA []byte) error
func (*LeaseRevokeRequest) XXX_DiscardUnknown ¶
func (m *LeaseRevokeRequest) XXX_DiscardUnknown()
func (*LeaseRevokeRequest) XXX_Marshal ¶
func (m *LeaseRevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseRevokeRequest) XXX_Merge ¶
func (m *LeaseRevokeRequest) XXX_Merge(src proto.Message)
func (*LeaseRevokeRequest) XXX_Size ¶
func (m *LeaseRevokeRequest) XXX_Size() int
func (*LeaseRevokeRequest) XXX_Unmarshal ¶
func (m *LeaseRevokeRequest) XXX_Unmarshal(b []byte) error
type LeaseRevokeResponse ¶
type LeaseRevokeResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseRevokeResponse) Descriptor ¶
func (*LeaseRevokeResponse) Descriptor() ([]byte, []int)
func (*LeaseRevokeResponse) GetHeader ¶
func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader
func (*LeaseRevokeResponse) Marshal ¶
func (m *LeaseRevokeResponse) Marshal() (dAtA []byte, err error)
func (*LeaseRevokeResponse) MarshalTo ¶
func (m *LeaseRevokeResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseRevokeResponse) MarshalToSizedBuffer ¶
func (m *LeaseRevokeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseRevokeResponse) ProtoMessage ¶
func (*LeaseRevokeResponse) ProtoMessage()
func (*LeaseRevokeResponse) Reset ¶
func (m *LeaseRevokeResponse) Reset()
func (*LeaseRevokeResponse) Size ¶
func (m *LeaseRevokeResponse) Size() (n int)
func (*LeaseRevokeResponse) String ¶
func (m *LeaseRevokeResponse) String() string
func (*LeaseRevokeResponse) Unmarshal ¶
func (m *LeaseRevokeResponse) Unmarshal(dAtA []byte) error
func (*LeaseRevokeResponse) XXX_DiscardUnknown ¶
func (m *LeaseRevokeResponse) XXX_DiscardUnknown()
func (*LeaseRevokeResponse) XXX_Marshal ¶
func (m *LeaseRevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseRevokeResponse) XXX_Merge ¶
func (m *LeaseRevokeResponse) XXX_Merge(src proto.Message)
func (*LeaseRevokeResponse) XXX_Size ¶
func (m *LeaseRevokeResponse) XXX_Size() int
func (*LeaseRevokeResponse) XXX_Unmarshal ¶
func (m *LeaseRevokeResponse) XXX_Unmarshal(b []byte) error
type LeaseStatus ¶
type LeaseStatus struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseStatus) Descriptor ¶
func (*LeaseStatus) Descriptor() ([]byte, []int)
func (*LeaseStatus) GetID ¶
func (m *LeaseStatus) GetID() int64
func (*LeaseStatus) Marshal ¶
func (m *LeaseStatus) Marshal() (dAtA []byte, err error)
func (*LeaseStatus) MarshalToSizedBuffer ¶
func (m *LeaseStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseStatus) ProtoMessage ¶
func (*LeaseStatus) ProtoMessage()
func (*LeaseStatus) Reset ¶
func (m *LeaseStatus) Reset()
func (*LeaseStatus) Size ¶
func (m *LeaseStatus) Size() (n int)
func (*LeaseStatus) String ¶
func (m *LeaseStatus) String() string
func (*LeaseStatus) Unmarshal ¶
func (m *LeaseStatus) Unmarshal(dAtA []byte) error
func (*LeaseStatus) XXX_DiscardUnknown ¶
func (m *LeaseStatus) XXX_DiscardUnknown()
func (*LeaseStatus) XXX_Marshal ¶
func (m *LeaseStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseStatus) XXX_Merge ¶
func (m *LeaseStatus) XXX_Merge(src proto.Message)
func (*LeaseStatus) XXX_Size ¶
func (m *LeaseStatus) XXX_Size() int
func (*LeaseStatus) XXX_Unmarshal ¶
func (m *LeaseStatus) XXX_Unmarshal(b []byte) error
type LeaseTimeToLiveRequest ¶
type LeaseTimeToLiveRequest struct { // ID is the lease ID for the lease. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // keys is true to query all the keys attached to this lease. Keys bool `protobuf:"varint,2,opt,name=keys,proto3" json:"keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseTimeToLiveRequest) Descriptor ¶
func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int)
func (*LeaseTimeToLiveRequest) GetID ¶
func (m *LeaseTimeToLiveRequest) GetID() int64
func (*LeaseTimeToLiveRequest) GetKeys ¶
func (m *LeaseTimeToLiveRequest) GetKeys() bool
func (*LeaseTimeToLiveRequest) Marshal ¶
func (m *LeaseTimeToLiveRequest) Marshal() (dAtA []byte, err error)
func (*LeaseTimeToLiveRequest) MarshalTo ¶
func (m *LeaseTimeToLiveRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaseTimeToLiveRequest) MarshalToSizedBuffer ¶
func (m *LeaseTimeToLiveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseTimeToLiveRequest) ProtoMessage ¶
func (*LeaseTimeToLiveRequest) ProtoMessage()
func (*LeaseTimeToLiveRequest) Reset ¶
func (m *LeaseTimeToLiveRequest) Reset()
func (*LeaseTimeToLiveRequest) Size ¶
func (m *LeaseTimeToLiveRequest) Size() (n int)
func (*LeaseTimeToLiveRequest) String ¶
func (m *LeaseTimeToLiveRequest) String() string
func (*LeaseTimeToLiveRequest) Unmarshal ¶
func (m *LeaseTimeToLiveRequest) Unmarshal(dAtA []byte) error
func (*LeaseTimeToLiveRequest) XXX_DiscardUnknown ¶
func (m *LeaseTimeToLiveRequest) XXX_DiscardUnknown()
func (*LeaseTimeToLiveRequest) XXX_Marshal ¶
func (m *LeaseTimeToLiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseTimeToLiveRequest) XXX_Merge ¶
func (m *LeaseTimeToLiveRequest) XXX_Merge(src proto.Message)
func (*LeaseTimeToLiveRequest) XXX_Size ¶
func (m *LeaseTimeToLiveRequest) XXX_Size() int
func (*LeaseTimeToLiveRequest) XXX_Unmarshal ¶
func (m *LeaseTimeToLiveRequest) XXX_Unmarshal(b []byte) error
type LeaseTimeToLiveResponse ¶
type LeaseTimeToLiveResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // ID is the lease ID from the keep alive request. ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` // TTL is the remaining TTL in seconds for the lease; the lease will expire in // under TTL+1 seconds. TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` // GrantedTTL is the initial granted time in seconds upon lease // creation/renewal. GrantedTTL int64 `protobuf:"varint,4,opt,name=grantedTTL,proto3" json:"grantedTTL,omitempty"` // Keys is the list of keys attached to this lease. Keys [][]byte `protobuf:"bytes,5,rep,name=keys,proto3" json:"keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaseTimeToLiveResponse) Descriptor ¶
func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int)
func (*LeaseTimeToLiveResponse) GetGrantedTTL ¶
func (m *LeaseTimeToLiveResponse) GetGrantedTTL() int64
func (*LeaseTimeToLiveResponse) GetHeader ¶
func (m *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader
func (*LeaseTimeToLiveResponse) GetID ¶
func (m *LeaseTimeToLiveResponse) GetID() int64
func (*LeaseTimeToLiveResponse) GetKeys ¶
func (m *LeaseTimeToLiveResponse) GetKeys() [][]byte
func (*LeaseTimeToLiveResponse) GetTTL ¶
func (m *LeaseTimeToLiveResponse) GetTTL() int64
func (*LeaseTimeToLiveResponse) Marshal ¶
func (m *LeaseTimeToLiveResponse) Marshal() (dAtA []byte, err error)
func (*LeaseTimeToLiveResponse) MarshalTo ¶
func (m *LeaseTimeToLiveResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaseTimeToLiveResponse) MarshalToSizedBuffer ¶
func (m *LeaseTimeToLiveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseTimeToLiveResponse) ProtoMessage ¶
func (*LeaseTimeToLiveResponse) ProtoMessage()
func (*LeaseTimeToLiveResponse) Reset ¶
func (m *LeaseTimeToLiveResponse) Reset()
func (*LeaseTimeToLiveResponse) Size ¶
func (m *LeaseTimeToLiveResponse) Size() (n int)
func (*LeaseTimeToLiveResponse) String ¶
func (m *LeaseTimeToLiveResponse) String() string
func (*LeaseTimeToLiveResponse) Unmarshal ¶
func (m *LeaseTimeToLiveResponse) Unmarshal(dAtA []byte) error
func (*LeaseTimeToLiveResponse) XXX_DiscardUnknown ¶
func (m *LeaseTimeToLiveResponse) XXX_DiscardUnknown()
func (*LeaseTimeToLiveResponse) XXX_Marshal ¶
func (m *LeaseTimeToLiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseTimeToLiveResponse) XXX_Merge ¶
func (m *LeaseTimeToLiveResponse) XXX_Merge(src proto.Message)
func (*LeaseTimeToLiveResponse) XXX_Size ¶
func (m *LeaseTimeToLiveResponse) XXX_Size() int
func (*LeaseTimeToLiveResponse) XXX_Unmarshal ¶
func (m *LeaseTimeToLiveResponse) XXX_Unmarshal(b []byte) error
type PutRequest ¶
type PutRequest struct { // key is the key, in bytes, to put into the key-value store. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // value is the value, in bytes, to associate with the key in the key-value // store. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // lease is the lease ID to associate with the key in the key-value store. A // lease value of 0 indicates no lease. Lease int64 `protobuf:"varint,3,opt,name=lease,proto3" json:"lease,omitempty"` // If prev_kv is set, etcd gets the previous key-value pair before changing // it. The previous key-value pair will be returned in the put response. PrevKv bool `protobuf:"varint,4,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` // If ignore_value is set, etcd updates the key using its current value. // Returns an error if the key does not exist. IgnoreValue bool `protobuf:"varint,5,opt,name=ignore_value,json=ignoreValue,proto3" json:"ignore_value,omitempty"` // If ignore_lease is set, etcd updates the key using its current lease. // Returns an error if the key does not exist. IgnoreLease bool `protobuf:"varint,6,opt,name=ignore_lease,json=ignoreLease,proto3" json:"ignore_lease,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutRequest) Descriptor ¶
func (*PutRequest) Descriptor() ([]byte, []int)
func (*PutRequest) GetIgnoreLease ¶
func (m *PutRequest) GetIgnoreLease() bool
func (*PutRequest) GetIgnoreValue ¶
func (m *PutRequest) GetIgnoreValue() bool
func (*PutRequest) GetKey ¶
func (m *PutRequest) GetKey() []byte
func (*PutRequest) GetLease ¶
func (m *PutRequest) GetLease() int64
func (*PutRequest) GetPrevKv ¶
func (m *PutRequest) GetPrevKv() bool
func (*PutRequest) GetValue ¶
func (m *PutRequest) GetValue() []byte
func (*PutRequest) Marshal ¶
func (m *PutRequest) Marshal() (dAtA []byte, err error)
func (*PutRequest) MarshalToSizedBuffer ¶
func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) Reset ¶
func (m *PutRequest) Reset()
func (*PutRequest) Size ¶
func (m *PutRequest) Size() (n int)
func (*PutRequest) String ¶
func (m *PutRequest) String() string
func (*PutRequest) Unmarshal ¶
func (m *PutRequest) Unmarshal(dAtA []byte) error
func (*PutRequest) XXX_DiscardUnknown ¶
func (m *PutRequest) XXX_DiscardUnknown()
func (*PutRequest) XXX_Marshal ¶
func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PutRequest) XXX_Merge ¶
func (m *PutRequest) XXX_Merge(src proto.Message)
func (*PutRequest) XXX_Size ¶
func (m *PutRequest) XXX_Size() int
func (*PutRequest) XXX_Unmarshal ¶
func (m *PutRequest) XXX_Unmarshal(b []byte) error
type PutResponse ¶
type PutResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // if prev_kv is set in the request, the previous key-value pair will be // returned. PrevKv *KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutResponse) Descriptor ¶
func (*PutResponse) Descriptor() ([]byte, []int)
func (*PutResponse) GetHeader ¶
func (m *PutResponse) GetHeader() *ResponseHeader
func (*PutResponse) GetPrevKv ¶
func (m *PutResponse) GetPrevKv() *KeyValue
func (*PutResponse) Marshal ¶
func (m *PutResponse) Marshal() (dAtA []byte, err error)
func (*PutResponse) MarshalToSizedBuffer ¶
func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PutResponse) ProtoMessage ¶
func (*PutResponse) ProtoMessage()
func (*PutResponse) Reset ¶
func (m *PutResponse) Reset()
func (*PutResponse) Size ¶
func (m *PutResponse) Size() (n int)
func (*PutResponse) String ¶
func (m *PutResponse) String() string
func (*PutResponse) Unmarshal ¶
func (m *PutResponse) Unmarshal(dAtA []byte) error
func (*PutResponse) XXX_DiscardUnknown ¶
func (m *PutResponse) XXX_DiscardUnknown()
func (*PutResponse) XXX_Marshal ¶
func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PutResponse) XXX_Merge ¶
func (m *PutResponse) XXX_Merge(src proto.Message)
func (*PutResponse) XXX_Size ¶
func (m *PutResponse) XXX_Size() int
func (*PutResponse) XXX_Unmarshal ¶
func (m *PutResponse) XXX_Unmarshal(b []byte) error
type RangeRequest ¶
type RangeRequest struct { // key is the first key for the range. If range_end is not given, the request // only looks up key. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // range_end is the upper bound on the requested range [key, range_end). // If range_end is '\0', the range is all keys >= key. // If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"), // then the range request gets all keys prefixed with key. // If both key and range_end are '\0', then the range request returns all // keys. RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` // limit is a limit on the number of keys returned for the request. When limit // is set to 0, it is treated as no limit. Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // revision is the point-in-time of the key-value store to use for the range. // If revision is less or equal to zero, the range is over the newest // key-value store. If the revision has been compacted, ErrCompacted is // returned as a response. Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` // sort_order is the order for returned sorted results. SortOrder RangeRequest_SortOrder `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3,enum=mvccpb.RangeRequest_SortOrder" json:"sort_order,omitempty"` // sort_target is the key-value field to use for sorting. SortTarget RangeRequest_SortTarget `` /* 128-byte string literal not displayed */ // serializable sets the range request to use serializable member-local reads. // Range requests are linearizable by default; linearizable requests have // higher latency and lower throughput than serializable requests but reflect // the current consensus of the cluster. For better performance, in exchange // for possible stale reads, a serializable range request is served locally // without needing to reach consensus with other nodes in the cluster. Serializable bool `protobuf:"varint,7,opt,name=serializable,proto3" json:"serializable,omitempty"` // keys_only when set returns only the keys and not the values. KeysOnly bool `protobuf:"varint,8,opt,name=keys_only,json=keysOnly,proto3" json:"keys_only,omitempty"` // count_only when set returns only the count of the keys in the range. CountOnly bool `protobuf:"varint,9,opt,name=count_only,json=countOnly,proto3" json:"count_only,omitempty"` // min_mod_revision is the lower bound for returned key mod revisions; all // keys with lesser mod revisions will be filtered away. MinModRevision int64 `protobuf:"varint,10,opt,name=min_mod_revision,json=minModRevision,proto3" json:"min_mod_revision,omitempty"` // max_mod_revision is the upper bound for returned key mod revisions; all // keys with greater mod revisions will be filtered away. MaxModRevision int64 `protobuf:"varint,11,opt,name=max_mod_revision,json=maxModRevision,proto3" json:"max_mod_revision,omitempty"` // min_create_revision is the lower bound for returned key create revisions; // all keys with lesser create revisions will be filtered away. MinCreateRevision int64 `protobuf:"varint,12,opt,name=min_create_revision,json=minCreateRevision,proto3" json:"min_create_revision,omitempty"` // max_create_revision is the upper bound for returned key create revisions; // all keys with greater create revisions will be filtered away. MaxCreateRevision int64 `protobuf:"varint,13,opt,name=max_create_revision,json=maxCreateRevision,proto3" json:"max_create_revision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RangeRequest) Descriptor ¶
func (*RangeRequest) Descriptor() ([]byte, []int)
func (*RangeRequest) GetCountOnly ¶
func (m *RangeRequest) GetCountOnly() bool
func (*RangeRequest) GetKey ¶
func (m *RangeRequest) GetKey() []byte
func (*RangeRequest) GetKeysOnly ¶
func (m *RangeRequest) GetKeysOnly() bool
func (*RangeRequest) GetLimit ¶
func (m *RangeRequest) GetLimit() int64
func (*RangeRequest) GetMaxCreateRevision ¶
func (m *RangeRequest) GetMaxCreateRevision() int64
func (*RangeRequest) GetMaxModRevision ¶
func (m *RangeRequest) GetMaxModRevision() int64
func (*RangeRequest) GetMinCreateRevision ¶
func (m *RangeRequest) GetMinCreateRevision() int64
func (*RangeRequest) GetMinModRevision ¶
func (m *RangeRequest) GetMinModRevision() int64
func (*RangeRequest) GetRangeEnd ¶
func (m *RangeRequest) GetRangeEnd() []byte
func (*RangeRequest) GetRevision ¶
func (m *RangeRequest) GetRevision() int64
func (*RangeRequest) GetSerializable ¶
func (m *RangeRequest) GetSerializable() bool
func (*RangeRequest) GetSortOrder ¶
func (m *RangeRequest) GetSortOrder() RangeRequest_SortOrder
func (*RangeRequest) GetSortTarget ¶
func (m *RangeRequest) GetSortTarget() RangeRequest_SortTarget
func (*RangeRequest) Marshal ¶
func (m *RangeRequest) Marshal() (dAtA []byte, err error)
func (*RangeRequest) MarshalToSizedBuffer ¶
func (m *RangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RangeRequest) ProtoMessage ¶
func (*RangeRequest) ProtoMessage()
func (*RangeRequest) Reset ¶
func (m *RangeRequest) Reset()
func (*RangeRequest) Size ¶
func (m *RangeRequest) Size() (n int)
func (*RangeRequest) String ¶
func (m *RangeRequest) String() string
func (*RangeRequest) Unmarshal ¶
func (m *RangeRequest) Unmarshal(dAtA []byte) error
func (*RangeRequest) XXX_DiscardUnknown ¶
func (m *RangeRequest) XXX_DiscardUnknown()
func (*RangeRequest) XXX_Marshal ¶
func (m *RangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RangeRequest) XXX_Merge ¶
func (m *RangeRequest) XXX_Merge(src proto.Message)
func (*RangeRequest) XXX_Size ¶
func (m *RangeRequest) XXX_Size() int
func (*RangeRequest) XXX_Unmarshal ¶
func (m *RangeRequest) XXX_Unmarshal(b []byte) error
type RangeRequest_SortOrder ¶
type RangeRequest_SortOrder int32
const ( RangeRequest_NONE RangeRequest_SortOrder = 0 RangeRequest_ASCEND RangeRequest_SortOrder = 1 RangeRequest_DESCEND RangeRequest_SortOrder = 2 )
func (RangeRequest_SortOrder) EnumDescriptor ¶
func (RangeRequest_SortOrder) EnumDescriptor() ([]byte, []int)
func (RangeRequest_SortOrder) String ¶
func (x RangeRequest_SortOrder) String() string
type RangeRequest_SortTarget ¶
type RangeRequest_SortTarget int32
const ( RangeRequest_KEY RangeRequest_SortTarget = 0 RangeRequest_VERSION RangeRequest_SortTarget = 1 RangeRequest_CREATE RangeRequest_SortTarget = 2 RangeRequest_MOD RangeRequest_SortTarget = 3 RangeRequest_VALUE RangeRequest_SortTarget = 4 )
func (RangeRequest_SortTarget) EnumDescriptor ¶
func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int)
func (RangeRequest_SortTarget) String ¶
func (x RangeRequest_SortTarget) String() string
type RangeResponse ¶
type RangeResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // kvs is the list of key-value pairs matched by the range request. // kvs is empty when count is requested. Kvs []*KeyValue `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"` // more indicates if there are more keys to return in the requested range. More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"` // count is set to the number of keys within the range when requested. Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RangeResponse) Descriptor ¶
func (*RangeResponse) Descriptor() ([]byte, []int)
func (*RangeResponse) GetCount ¶
func (m *RangeResponse) GetCount() int64
func (*RangeResponse) GetHeader ¶
func (m *RangeResponse) GetHeader() *ResponseHeader
func (*RangeResponse) GetKvs ¶
func (m *RangeResponse) GetKvs() []*KeyValue
func (*RangeResponse) GetMore ¶
func (m *RangeResponse) GetMore() bool
func (*RangeResponse) Marshal ¶
func (m *RangeResponse) Marshal() (dAtA []byte, err error)
func (*RangeResponse) MarshalToSizedBuffer ¶
func (m *RangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RangeResponse) ProtoMessage ¶
func (*RangeResponse) ProtoMessage()
func (*RangeResponse) Reset ¶
func (m *RangeResponse) Reset()
func (*RangeResponse) Size ¶
func (m *RangeResponse) Size() (n int)
func (*RangeResponse) String ¶
func (m *RangeResponse) String() string
func (*RangeResponse) Unmarshal ¶
func (m *RangeResponse) Unmarshal(dAtA []byte) error
func (*RangeResponse) XXX_DiscardUnknown ¶
func (m *RangeResponse) XXX_DiscardUnknown()
func (*RangeResponse) XXX_Marshal ¶
func (m *RangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RangeResponse) XXX_Merge ¶
func (m *RangeResponse) XXX_Merge(src proto.Message)
func (*RangeResponse) XXX_Size ¶
func (m *RangeResponse) XXX_Size() int
func (*RangeResponse) XXX_Unmarshal ¶
func (m *RangeResponse) XXX_Unmarshal(b []byte) error
type RequestOp ¶
type RequestOp struct { // request is a union of request types accepted by a transaction. // // Types that are valid to be assigned to Request: // *RequestOp_RequestRange // *RequestOp_RequestPut // *RequestOp_RequestDeleteRange // *RequestOp_RequestTxn Request isRequestOp_Request `protobuf_oneof:"request"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RequestOp) Descriptor ¶
func (*RequestOp) GetRequest ¶
func (m *RequestOp) GetRequest() isRequestOp_Request
func (*RequestOp) GetRequestDeleteRange ¶
func (m *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest
func (*RequestOp) GetRequestPut ¶
func (m *RequestOp) GetRequestPut() *PutRequest
func (*RequestOp) GetRequestRange ¶
func (m *RequestOp) GetRequestRange() *RangeRequest
func (*RequestOp) GetRequestTxn ¶
func (m *RequestOp) GetRequestTxn() *TxnRequest
func (*RequestOp) MarshalToSizedBuffer ¶
func (*RequestOp) ProtoMessage ¶
func (*RequestOp) ProtoMessage()
func (*RequestOp) XXX_DiscardUnknown ¶
func (m *RequestOp) XXX_DiscardUnknown()
func (*RequestOp) XXX_Marshal ¶
func (*RequestOp) XXX_OneofWrappers ¶
func (*RequestOp) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*RequestOp) XXX_Unmarshal ¶
type RequestOp_RequestDeleteRange ¶
type RequestOp_RequestDeleteRange struct {
RequestDeleteRange *DeleteRangeRequest `protobuf:"bytes,3,opt,name=request_delete_range,json=requestDeleteRange,proto3,oneof" json:"request_delete_range,omitempty"`
}
func (*RequestOp_RequestDeleteRange) MarshalTo ¶
func (m *RequestOp_RequestDeleteRange) MarshalTo(dAtA []byte) (int, error)
func (*RequestOp_RequestDeleteRange) MarshalToSizedBuffer ¶
func (m *RequestOp_RequestDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RequestOp_RequestDeleteRange) Size ¶
func (m *RequestOp_RequestDeleteRange) Size() (n int)
type RequestOp_RequestPut ¶
type RequestOp_RequestPut struct {
RequestPut *PutRequest `protobuf:"bytes,2,opt,name=request_put,json=requestPut,proto3,oneof" json:"request_put,omitempty"`
}
func (*RequestOp_RequestPut) MarshalTo ¶
func (m *RequestOp_RequestPut) MarshalTo(dAtA []byte) (int, error)
func (*RequestOp_RequestPut) MarshalToSizedBuffer ¶
func (m *RequestOp_RequestPut) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RequestOp_RequestPut) Size ¶
func (m *RequestOp_RequestPut) Size() (n int)
type RequestOp_RequestRange ¶
type RequestOp_RequestRange struct {
RequestRange *RangeRequest `protobuf:"bytes,1,opt,name=request_range,json=requestRange,proto3,oneof" json:"request_range,omitempty"`
}
func (*RequestOp_RequestRange) MarshalTo ¶
func (m *RequestOp_RequestRange) MarshalTo(dAtA []byte) (int, error)
func (*RequestOp_RequestRange) MarshalToSizedBuffer ¶
func (m *RequestOp_RequestRange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RequestOp_RequestRange) Size ¶
func (m *RequestOp_RequestRange) Size() (n int)
type RequestOp_RequestTxn ¶
type RequestOp_RequestTxn struct {
RequestTxn *TxnRequest `protobuf:"bytes,4,opt,name=request_txn,json=requestTxn,proto3,oneof" json:"request_txn,omitempty"`
}
func (*RequestOp_RequestTxn) MarshalTo ¶
func (m *RequestOp_RequestTxn) MarshalTo(dAtA []byte) (int, error)
func (*RequestOp_RequestTxn) MarshalToSizedBuffer ¶
func (m *RequestOp_RequestTxn) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RequestOp_RequestTxn) Size ¶
func (m *RequestOp_RequestTxn) Size() (n int)
type ResponseHeader ¶
type ResponseHeader struct { // revision is the key-value store revision when the request was applied. // For watch progress responses, the header.revision indicates progress. All // future events recieved in this stream are guaranteed to have a higher // revision number than the header.revision number. Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResponseHeader) Descriptor ¶
func (*ResponseHeader) Descriptor() ([]byte, []int)
func (*ResponseHeader) GetRevision ¶
func (m *ResponseHeader) GetRevision() int64
func (*ResponseHeader) Marshal ¶
func (m *ResponseHeader) Marshal() (dAtA []byte, err error)
func (*ResponseHeader) MarshalToSizedBuffer ¶
func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseHeader) ProtoMessage ¶
func (*ResponseHeader) ProtoMessage()
func (*ResponseHeader) Reset ¶
func (m *ResponseHeader) Reset()
func (*ResponseHeader) Size ¶
func (m *ResponseHeader) Size() (n int)
func (*ResponseHeader) String ¶
func (m *ResponseHeader) String() string
func (*ResponseHeader) Unmarshal ¶
func (m *ResponseHeader) Unmarshal(dAtA []byte) error
func (*ResponseHeader) XXX_DiscardUnknown ¶
func (m *ResponseHeader) XXX_DiscardUnknown()
func (*ResponseHeader) XXX_Marshal ¶
func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResponseHeader) XXX_Merge ¶
func (m *ResponseHeader) XXX_Merge(src proto.Message)
func (*ResponseHeader) XXX_Size ¶
func (m *ResponseHeader) XXX_Size() int
func (*ResponseHeader) XXX_Unmarshal ¶
func (m *ResponseHeader) XXX_Unmarshal(b []byte) error
type ResponseOp ¶
type ResponseOp struct { // response is a union of response types returned by a transaction. // // Types that are valid to be assigned to Response: // *ResponseOp_ResponseRange // *ResponseOp_ResponsePut // *ResponseOp_ResponseDeleteRange // *ResponseOp_ResponseTxn Response isResponseOp_Response `protobuf_oneof:"response"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResponseOp) Descriptor ¶
func (*ResponseOp) Descriptor() ([]byte, []int)
func (*ResponseOp) GetResponse ¶
func (m *ResponseOp) GetResponse() isResponseOp_Response
func (*ResponseOp) GetResponseDeleteRange ¶
func (m *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse
func (*ResponseOp) GetResponsePut ¶
func (m *ResponseOp) GetResponsePut() *PutResponse
func (*ResponseOp) GetResponseRange ¶
func (m *ResponseOp) GetResponseRange() *RangeResponse
func (*ResponseOp) GetResponseTxn ¶
func (m *ResponseOp) GetResponseTxn() *TxnResponse
func (*ResponseOp) Marshal ¶
func (m *ResponseOp) Marshal() (dAtA []byte, err error)
func (*ResponseOp) MarshalToSizedBuffer ¶
func (m *ResponseOp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseOp) ProtoMessage ¶
func (*ResponseOp) ProtoMessage()
func (*ResponseOp) Reset ¶
func (m *ResponseOp) Reset()
func (*ResponseOp) Size ¶
func (m *ResponseOp) Size() (n int)
func (*ResponseOp) String ¶
func (m *ResponseOp) String() string
func (*ResponseOp) Unmarshal ¶
func (m *ResponseOp) Unmarshal(dAtA []byte) error
func (*ResponseOp) XXX_DiscardUnknown ¶
func (m *ResponseOp) XXX_DiscardUnknown()
func (*ResponseOp) XXX_Marshal ¶
func (m *ResponseOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResponseOp) XXX_Merge ¶
func (m *ResponseOp) XXX_Merge(src proto.Message)
func (*ResponseOp) XXX_OneofWrappers ¶
func (*ResponseOp) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ResponseOp) XXX_Size ¶
func (m *ResponseOp) XXX_Size() int
func (*ResponseOp) XXX_Unmarshal ¶
func (m *ResponseOp) XXX_Unmarshal(b []byte) error
type ResponseOp_ResponseDeleteRange ¶
type ResponseOp_ResponseDeleteRange struct {
ResponseDeleteRange *DeleteRangeResponse `` /* 126-byte string literal not displayed */
}
func (*ResponseOp_ResponseDeleteRange) MarshalTo ¶
func (m *ResponseOp_ResponseDeleteRange) MarshalTo(dAtA []byte) (int, error)
func (*ResponseOp_ResponseDeleteRange) MarshalToSizedBuffer ¶
func (m *ResponseOp_ResponseDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseOp_ResponseDeleteRange) Size ¶
func (m *ResponseOp_ResponseDeleteRange) Size() (n int)
type ResponseOp_ResponsePut ¶
type ResponseOp_ResponsePut struct {
ResponsePut *PutResponse `protobuf:"bytes,2,opt,name=response_put,json=responsePut,proto3,oneof" json:"response_put,omitempty"`
}
func (*ResponseOp_ResponsePut) MarshalTo ¶
func (m *ResponseOp_ResponsePut) MarshalTo(dAtA []byte) (int, error)
func (*ResponseOp_ResponsePut) MarshalToSizedBuffer ¶
func (m *ResponseOp_ResponsePut) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseOp_ResponsePut) Size ¶
func (m *ResponseOp_ResponsePut) Size() (n int)
type ResponseOp_ResponseRange ¶
type ResponseOp_ResponseRange struct {
ResponseRange *RangeResponse `protobuf:"bytes,1,opt,name=response_range,json=responseRange,proto3,oneof" json:"response_range,omitempty"`
}
func (*ResponseOp_ResponseRange) MarshalTo ¶
func (m *ResponseOp_ResponseRange) MarshalTo(dAtA []byte) (int, error)
func (*ResponseOp_ResponseRange) MarshalToSizedBuffer ¶
func (m *ResponseOp_ResponseRange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseOp_ResponseRange) Size ¶
func (m *ResponseOp_ResponseRange) Size() (n int)
type ResponseOp_ResponseTxn ¶
type ResponseOp_ResponseTxn struct {
ResponseTxn *TxnResponse `protobuf:"bytes,4,opt,name=response_txn,json=responseTxn,proto3,oneof" json:"response_txn,omitempty"`
}
func (*ResponseOp_ResponseTxn) MarshalTo ¶
func (m *ResponseOp_ResponseTxn) MarshalTo(dAtA []byte) (int, error)
func (*ResponseOp_ResponseTxn) MarshalToSizedBuffer ¶
func (m *ResponseOp_ResponseTxn) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseOp_ResponseTxn) Size ¶
func (m *ResponseOp_ResponseTxn) Size() (n int)
type SnapshotRequest ¶
type SnapshotRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SnapshotRequest) Descriptor ¶
func (*SnapshotRequest) Descriptor() ([]byte, []int)
func (*SnapshotRequest) Marshal ¶
func (m *SnapshotRequest) Marshal() (dAtA []byte, err error)
func (*SnapshotRequest) MarshalToSizedBuffer ¶
func (m *SnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SnapshotRequest) ProtoMessage ¶
func (*SnapshotRequest) ProtoMessage()
func (*SnapshotRequest) Reset ¶
func (m *SnapshotRequest) Reset()
func (*SnapshotRequest) Size ¶
func (m *SnapshotRequest) Size() (n int)
func (*SnapshotRequest) String ¶
func (m *SnapshotRequest) String() string
func (*SnapshotRequest) Unmarshal ¶
func (m *SnapshotRequest) Unmarshal(dAtA []byte) error
func (*SnapshotRequest) XXX_DiscardUnknown ¶
func (m *SnapshotRequest) XXX_DiscardUnknown()
func (*SnapshotRequest) XXX_Marshal ¶
func (m *SnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SnapshotRequest) XXX_Merge ¶
func (m *SnapshotRequest) XXX_Merge(src proto.Message)
func (*SnapshotRequest) XXX_Size ¶
func (m *SnapshotRequest) XXX_Size() int
func (*SnapshotRequest) XXX_Unmarshal ¶
func (m *SnapshotRequest) XXX_Unmarshal(b []byte) error
type SnapshotResponse ¶
type SnapshotResponse struct { // header has the current key-value store information. The first header in the // snapshot stream indicates the point in time of the snapshot. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // remaining_bytes is the number of blob bytes to be sent after this message RemainingBytes uint64 `protobuf:"varint,2,opt,name=remaining_bytes,json=remainingBytes,proto3" json:"remaining_bytes,omitempty"` // blob contains the next chunk of the snapshot in the snapshot stream. Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SnapshotResponse) Descriptor ¶
func (*SnapshotResponse) Descriptor() ([]byte, []int)
func (*SnapshotResponse) GetBlob ¶
func (m *SnapshotResponse) GetBlob() []byte
func (*SnapshotResponse) GetHeader ¶
func (m *SnapshotResponse) GetHeader() *ResponseHeader
func (*SnapshotResponse) GetRemainingBytes ¶
func (m *SnapshotResponse) GetRemainingBytes() uint64
func (*SnapshotResponse) Marshal ¶
func (m *SnapshotResponse) Marshal() (dAtA []byte, err error)
func (*SnapshotResponse) MarshalToSizedBuffer ¶
func (m *SnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SnapshotResponse) ProtoMessage ¶
func (*SnapshotResponse) ProtoMessage()
func (*SnapshotResponse) Reset ¶
func (m *SnapshotResponse) Reset()
func (*SnapshotResponse) Size ¶
func (m *SnapshotResponse) Size() (n int)
func (*SnapshotResponse) String ¶
func (m *SnapshotResponse) String() string
func (*SnapshotResponse) Unmarshal ¶
func (m *SnapshotResponse) Unmarshal(dAtA []byte) error
func (*SnapshotResponse) XXX_DiscardUnknown ¶
func (m *SnapshotResponse) XXX_DiscardUnknown()
func (*SnapshotResponse) XXX_Marshal ¶
func (m *SnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SnapshotResponse) XXX_Merge ¶
func (m *SnapshotResponse) XXX_Merge(src proto.Message)
func (*SnapshotResponse) XXX_Size ¶
func (m *SnapshotResponse) XXX_Size() int
func (*SnapshotResponse) XXX_Unmarshal ¶
func (m *SnapshotResponse) XXX_Unmarshal(b []byte) error
type TxnRequest ¶
type TxnRequest struct { // compare is a list of predicates representing a conjunction of terms. // If the comparisons succeed, then the success requests will be processed in // order, and the response will contain their respective responses in order. // If the comparisons fail, then the failure requests will be processed in // order, and the response will contain their respective responses in order. Compare []*Compare `protobuf:"bytes,1,rep,name=compare,proto3" json:"compare,omitempty"` // success is a list of requests which will be applied when compare evaluates // to true. Success []*RequestOp `protobuf:"bytes,2,rep,name=success,proto3" json:"success,omitempty"` // failure is a list of requests which will be applied when compare evaluates // to false. Failure []*RequestOp `protobuf:"bytes,3,rep,name=failure,proto3" json:"failure,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
From google paxosdb paper: Our implementation hinges around a powerful primitive which we call MultiOp. All other database operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically and consists of three components: 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check for the absence or presence of a value, or compare with a given value. Two different tests in the guard may apply to the same or different entries in the database. All tests in the guard are applied and MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise it executes f op (see item 3 below). 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or lookup operation, and applies to a single database entry. Two different operations in the list may apply to the same or different entries in the database. These operations are executed if guard evaluates to true. 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
func (*TxnRequest) Descriptor ¶
func (*TxnRequest) Descriptor() ([]byte, []int)
func (*TxnRequest) GetCompare ¶
func (m *TxnRequest) GetCompare() []*Compare
func (*TxnRequest) GetFailure ¶
func (m *TxnRequest) GetFailure() []*RequestOp
func (*TxnRequest) GetSuccess ¶
func (m *TxnRequest) GetSuccess() []*RequestOp
func (*TxnRequest) Marshal ¶
func (m *TxnRequest) Marshal() (dAtA []byte, err error)
func (*TxnRequest) MarshalToSizedBuffer ¶
func (m *TxnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TxnRequest) ProtoMessage ¶
func (*TxnRequest) ProtoMessage()
func (*TxnRequest) Reset ¶
func (m *TxnRequest) Reset()
func (*TxnRequest) Size ¶
func (m *TxnRequest) Size() (n int)
func (*TxnRequest) String ¶
func (m *TxnRequest) String() string
func (*TxnRequest) Unmarshal ¶
func (m *TxnRequest) Unmarshal(dAtA []byte) error
func (*TxnRequest) XXX_DiscardUnknown ¶
func (m *TxnRequest) XXX_DiscardUnknown()
func (*TxnRequest) XXX_Marshal ¶
func (m *TxnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxnRequest) XXX_Merge ¶
func (m *TxnRequest) XXX_Merge(src proto.Message)
func (*TxnRequest) XXX_Size ¶
func (m *TxnRequest) XXX_Size() int
func (*TxnRequest) XXX_Unmarshal ¶
func (m *TxnRequest) XXX_Unmarshal(b []byte) error
type TxnResponse ¶
type TxnResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // succeeded is set to true if the compare evaluated to true or false // otherwise. Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` // responses is a list of responses corresponding to the results from applying // success if succeeded is true or failure if succeeded is false. Responses []*ResponseOp `protobuf:"bytes,3,rep,name=responses,proto3" json:"responses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxnResponse) Descriptor ¶
func (*TxnResponse) Descriptor() ([]byte, []int)
func (*TxnResponse) GetHeader ¶
func (m *TxnResponse) GetHeader() *ResponseHeader
func (*TxnResponse) GetResponses ¶
func (m *TxnResponse) GetResponses() []*ResponseOp
func (*TxnResponse) GetSucceeded ¶
func (m *TxnResponse) GetSucceeded() bool
func (*TxnResponse) Marshal ¶
func (m *TxnResponse) Marshal() (dAtA []byte, err error)
func (*TxnResponse) MarshalToSizedBuffer ¶
func (m *TxnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TxnResponse) ProtoMessage ¶
func (*TxnResponse) ProtoMessage()
func (*TxnResponse) Reset ¶
func (m *TxnResponse) Reset()
func (*TxnResponse) Size ¶
func (m *TxnResponse) Size() (n int)
func (*TxnResponse) String ¶
func (m *TxnResponse) String() string
func (*TxnResponse) Unmarshal ¶
func (m *TxnResponse) Unmarshal(dAtA []byte) error
func (*TxnResponse) XXX_DiscardUnknown ¶
func (m *TxnResponse) XXX_DiscardUnknown()
func (*TxnResponse) XXX_Marshal ¶
func (m *TxnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxnResponse) XXX_Merge ¶
func (m *TxnResponse) XXX_Merge(src proto.Message)
func (*TxnResponse) XXX_Size ¶
func (m *TxnResponse) XXX_Size() int
func (*TxnResponse) XXX_Unmarshal ¶
func (m *TxnResponse) XXX_Unmarshal(b []byte) error
type WatchCancelRequest ¶
type WatchCancelRequest struct { // watch_id is the watcher id to cancel so that no more events are // transmitted. WatchId int64 `protobuf:"varint,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WatchCancelRequest) Descriptor ¶
func (*WatchCancelRequest) Descriptor() ([]byte, []int)
func (*WatchCancelRequest) GetWatchId ¶
func (m *WatchCancelRequest) GetWatchId() int64
func (*WatchCancelRequest) Marshal ¶
func (m *WatchCancelRequest) Marshal() (dAtA []byte, err error)
func (*WatchCancelRequest) MarshalTo ¶
func (m *WatchCancelRequest) MarshalTo(dAtA []byte) (int, error)
func (*WatchCancelRequest) MarshalToSizedBuffer ¶
func (m *WatchCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WatchCancelRequest) ProtoMessage ¶
func (*WatchCancelRequest) ProtoMessage()
func (*WatchCancelRequest) Reset ¶
func (m *WatchCancelRequest) Reset()
func (*WatchCancelRequest) Size ¶
func (m *WatchCancelRequest) Size() (n int)
func (*WatchCancelRequest) String ¶
func (m *WatchCancelRequest) String() string
func (*WatchCancelRequest) Unmarshal ¶
func (m *WatchCancelRequest) Unmarshal(dAtA []byte) error
func (*WatchCancelRequest) XXX_DiscardUnknown ¶
func (m *WatchCancelRequest) XXX_DiscardUnknown()
func (*WatchCancelRequest) XXX_Marshal ¶
func (m *WatchCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WatchCancelRequest) XXX_Merge ¶
func (m *WatchCancelRequest) XXX_Merge(src proto.Message)
func (*WatchCancelRequest) XXX_Size ¶
func (m *WatchCancelRequest) XXX_Size() int
func (*WatchCancelRequest) XXX_Unmarshal ¶
func (m *WatchCancelRequest) XXX_Unmarshal(b []byte) error
type WatchCreateRequest ¶
type WatchCreateRequest struct { // key is the key to register for watching. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // range_end is the end of the range [key, range_end) to watch. If range_end // is not given, only the key argument is watched. If range_end is equal to // '\0', all keys greater than or equal to the key argument are watched. If // the range_end is one bit larger than the given key, then all keys with the // prefix (the given key) will be watched. RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` // start_revision is an optional revision to watch from (inclusive). No // start_revision is "now". StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"` // progress_notify is set so that the etcd server will periodically send a // WatchResponse with no events to the new watcher if there are no recent // events. It is useful when clients wish to recover a disconnected watcher // starting from a recent known revision. The etcd server may decide how often // it will send notifications based on current load. ProgressNotify bool `protobuf:"varint,4,opt,name=progress_notify,json=progressNotify,proto3" json:"progress_notify,omitempty"` // filters filter the events at server side before it sends back to the // watcher. Filters []WatchCreateRequest_FilterType `protobuf:"varint,5,rep,packed,name=filters,proto3,enum=mvccpb.WatchCreateRequest_FilterType" json:"filters,omitempty"` // If prev_kv is set, created watcher gets the previous KV before the event // happens. If the previous KV is already compacted, nothing will be returned. PrevKv bool `protobuf:"varint,6,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` // If watch_id is provided and non-zero, it will be assigned to this watcher. // Since creating a watcher in etcd is not a synchronous operation, // this can be used ensure that ordering is correct when creating multiple // watchers on the same stream. Creating a watcher with an ID already in // use on the stream will cause an error to be returned. WatchId int64 `protobuf:"varint,7,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` // fragment enables splitting large revisions into multiple watch responses. Fragment bool `protobuf:"varint,8,opt,name=fragment,proto3" json:"fragment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WatchCreateRequest) Descriptor ¶
func (*WatchCreateRequest) Descriptor() ([]byte, []int)
func (*WatchCreateRequest) GetFilters ¶
func (m *WatchCreateRequest) GetFilters() []WatchCreateRequest_FilterType
func (*WatchCreateRequest) GetFragment ¶
func (m *WatchCreateRequest) GetFragment() bool
func (*WatchCreateRequest) GetKey ¶
func (m *WatchCreateRequest) GetKey() []byte
func (*WatchCreateRequest) GetPrevKv ¶
func (m *WatchCreateRequest) GetPrevKv() bool
func (*WatchCreateRequest) GetProgressNotify ¶
func (m *WatchCreateRequest) GetProgressNotify() bool
func (*WatchCreateRequest) GetRangeEnd ¶
func (m *WatchCreateRequest) GetRangeEnd() []byte
func (*WatchCreateRequest) GetStartRevision ¶
func (m *WatchCreateRequest) GetStartRevision() int64
func (*WatchCreateRequest) GetWatchId ¶
func (m *WatchCreateRequest) GetWatchId() int64
func (*WatchCreateRequest) Marshal ¶
func (m *WatchCreateRequest) Marshal() (dAtA []byte, err error)
func (*WatchCreateRequest) MarshalTo ¶
func (m *WatchCreateRequest) MarshalTo(dAtA []byte) (int, error)
func (*WatchCreateRequest) MarshalToSizedBuffer ¶
func (m *WatchCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WatchCreateRequest) ProtoMessage ¶
func (*WatchCreateRequest) ProtoMessage()
func (*WatchCreateRequest) Reset ¶
func (m *WatchCreateRequest) Reset()
func (*WatchCreateRequest) Size ¶
func (m *WatchCreateRequest) Size() (n int)
func (*WatchCreateRequest) String ¶
func (m *WatchCreateRequest) String() string
func (*WatchCreateRequest) Unmarshal ¶
func (m *WatchCreateRequest) Unmarshal(dAtA []byte) error
func (*WatchCreateRequest) XXX_DiscardUnknown ¶
func (m *WatchCreateRequest) XXX_DiscardUnknown()
func (*WatchCreateRequest) XXX_Marshal ¶
func (m *WatchCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WatchCreateRequest) XXX_Merge ¶
func (m *WatchCreateRequest) XXX_Merge(src proto.Message)
func (*WatchCreateRequest) XXX_Size ¶
func (m *WatchCreateRequest) XXX_Size() int
func (*WatchCreateRequest) XXX_Unmarshal ¶
func (m *WatchCreateRequest) XXX_Unmarshal(b []byte) error
type WatchCreateRequest_FilterType ¶
type WatchCreateRequest_FilterType int32
const ( // filter out put event. WatchCreateRequest_NOPUT WatchCreateRequest_FilterType = 0 // filter out delete event. WatchCreateRequest_NODELETE WatchCreateRequest_FilterType = 1 )
func (WatchCreateRequest_FilterType) EnumDescriptor ¶
func (WatchCreateRequest_FilterType) EnumDescriptor() ([]byte, []int)
func (WatchCreateRequest_FilterType) String ¶
func (x WatchCreateRequest_FilterType) String() string
type WatchProgressRequest ¶
type WatchProgressRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Requests the a watch stream progress status be sent in the watch response stream as soon as possible.
func (*WatchProgressRequest) Descriptor ¶
func (*WatchProgressRequest) Descriptor() ([]byte, []int)
func (*WatchProgressRequest) Marshal ¶
func (m *WatchProgressRequest) Marshal() (dAtA []byte, err error)
func (*WatchProgressRequest) MarshalTo ¶
func (m *WatchProgressRequest) MarshalTo(dAtA []byte) (int, error)
func (*WatchProgressRequest) MarshalToSizedBuffer ¶
func (m *WatchProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WatchProgressRequest) ProtoMessage ¶
func (*WatchProgressRequest) ProtoMessage()
func (*WatchProgressRequest) Reset ¶
func (m *WatchProgressRequest) Reset()
func (*WatchProgressRequest) Size ¶
func (m *WatchProgressRequest) Size() (n int)
func (*WatchProgressRequest) String ¶
func (m *WatchProgressRequest) String() string
func (*WatchProgressRequest) Unmarshal ¶
func (m *WatchProgressRequest) Unmarshal(dAtA []byte) error
func (*WatchProgressRequest) XXX_DiscardUnknown ¶
func (m *WatchProgressRequest) XXX_DiscardUnknown()
func (*WatchProgressRequest) XXX_Marshal ¶
func (m *WatchProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WatchProgressRequest) XXX_Merge ¶
func (m *WatchProgressRequest) XXX_Merge(src proto.Message)
func (*WatchProgressRequest) XXX_Size ¶
func (m *WatchProgressRequest) XXX_Size() int
func (*WatchProgressRequest) XXX_Unmarshal ¶
func (m *WatchProgressRequest) XXX_Unmarshal(b []byte) error
type WatchRequest ¶
type WatchRequest struct { // request_union is a request to either create a new watcher or cancel an // existing watcher. // // Types that are valid to be assigned to RequestUnion: // *WatchRequest_CreateRequest // *WatchRequest_CancelRequest // *WatchRequest_ProgressRequest RequestUnion isWatchRequest_RequestUnion `protobuf_oneof:"request_union"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WatchRequest) Descriptor ¶
func (*WatchRequest) Descriptor() ([]byte, []int)
func (*WatchRequest) GetCancelRequest ¶
func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest
func (*WatchRequest) GetCreateRequest ¶
func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest
func (*WatchRequest) GetProgressRequest ¶
func (m *WatchRequest) GetProgressRequest() *WatchProgressRequest
func (*WatchRequest) GetRequestUnion ¶
func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion
func (*WatchRequest) Marshal ¶
func (m *WatchRequest) Marshal() (dAtA []byte, err error)
func (*WatchRequest) MarshalToSizedBuffer ¶
func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) Reset ¶
func (m *WatchRequest) Reset()
func (*WatchRequest) Size ¶
func (m *WatchRequest) Size() (n int)
func (*WatchRequest) String ¶
func (m *WatchRequest) String() string
func (*WatchRequest) Unmarshal ¶
func (m *WatchRequest) Unmarshal(dAtA []byte) error
func (*WatchRequest) XXX_DiscardUnknown ¶
func (m *WatchRequest) XXX_DiscardUnknown()
func (*WatchRequest) XXX_Marshal ¶
func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WatchRequest) XXX_Merge ¶
func (m *WatchRequest) XXX_Merge(src proto.Message)
func (*WatchRequest) XXX_OneofWrappers ¶
func (*WatchRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*WatchRequest) XXX_Size ¶
func (m *WatchRequest) XXX_Size() int
func (*WatchRequest) XXX_Unmarshal ¶
func (m *WatchRequest) XXX_Unmarshal(b []byte) error
type WatchRequest_CancelRequest ¶
type WatchRequest_CancelRequest struct {
CancelRequest *WatchCancelRequest `protobuf:"bytes,2,opt,name=cancel_request,json=cancelRequest,proto3,oneof" json:"cancel_request,omitempty"`
}
func (*WatchRequest_CancelRequest) MarshalTo ¶
func (m *WatchRequest_CancelRequest) MarshalTo(dAtA []byte) (int, error)
func (*WatchRequest_CancelRequest) MarshalToSizedBuffer ¶
func (m *WatchRequest_CancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WatchRequest_CancelRequest) Size ¶
func (m *WatchRequest_CancelRequest) Size() (n int)
type WatchRequest_CreateRequest ¶
type WatchRequest_CreateRequest struct {
CreateRequest *WatchCreateRequest `protobuf:"bytes,1,opt,name=create_request,json=createRequest,proto3,oneof" json:"create_request,omitempty"`
}
func (*WatchRequest_CreateRequest) MarshalTo ¶
func (m *WatchRequest_CreateRequest) MarshalTo(dAtA []byte) (int, error)
func (*WatchRequest_CreateRequest) MarshalToSizedBuffer ¶
func (m *WatchRequest_CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WatchRequest_CreateRequest) Size ¶
func (m *WatchRequest_CreateRequest) Size() (n int)
type WatchRequest_ProgressRequest ¶
type WatchRequest_ProgressRequest struct {
ProgressRequest *WatchProgressRequest `protobuf:"bytes,3,opt,name=progress_request,json=progressRequest,proto3,oneof" json:"progress_request,omitempty"`
}
func (*WatchRequest_ProgressRequest) MarshalTo ¶
func (m *WatchRequest_ProgressRequest) MarshalTo(dAtA []byte) (int, error)
func (*WatchRequest_ProgressRequest) MarshalToSizedBuffer ¶
func (m *WatchRequest_ProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WatchRequest_ProgressRequest) Size ¶
func (m *WatchRequest_ProgressRequest) Size() (n int)
type WatchResponse ¶
type WatchResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // watch_id is the ID of the watcher that corresponds to the response. WatchId int64 `protobuf:"varint,2,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` // created is set to true if the response is for a create watch request. // The client should record the watch_id and expect to receive events for // the created watcher from the same stream. // All events sent to the created watcher will attach with the same watch_id. Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` // canceled is set to true if the response is for a cancel watch request. // No further events will be sent to the canceled watcher. Canceled bool `protobuf:"varint,4,opt,name=canceled,proto3" json:"canceled,omitempty"` // compact_revision is set to the minimum index if a watcher tries to watch // at a compacted index. // // This happens when creating a watcher at a compacted revision or the watcher // cannot catch up with the progress of the key-value store. // // The client should treat the watcher as canceled and should not try to // create any watcher with the same start_revision again. CompactRevision int64 `protobuf:"varint,5,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` // cancel_reason indicates the reason for canceling the watcher. CancelReason string `protobuf:"bytes,6,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"` // framgment is true if large watch response was split over multiple // responses. Fragment bool `protobuf:"varint,7,opt,name=fragment,proto3" json:"fragment,omitempty"` Events []*Event `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WatchResponse) Descriptor ¶
func (*WatchResponse) Descriptor() ([]byte, []int)
func (*WatchResponse) GetCancelReason ¶
func (m *WatchResponse) GetCancelReason() string
func (*WatchResponse) GetCanceled ¶
func (m *WatchResponse) GetCanceled() bool
func (*WatchResponse) GetCompactRevision ¶
func (m *WatchResponse) GetCompactRevision() int64
func (*WatchResponse) GetCreated ¶
func (m *WatchResponse) GetCreated() bool
func (*WatchResponse) GetEvents ¶
func (m *WatchResponse) GetEvents() []*Event
func (*WatchResponse) GetFragment ¶
func (m *WatchResponse) GetFragment() bool
func (*WatchResponse) GetHeader ¶
func (m *WatchResponse) GetHeader() *ResponseHeader
func (*WatchResponse) GetWatchId ¶
func (m *WatchResponse) GetWatchId() int64
func (*WatchResponse) Marshal ¶
func (m *WatchResponse) Marshal() (dAtA []byte, err error)
func (*WatchResponse) MarshalToSizedBuffer ¶
func (m *WatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) Reset ¶
func (m *WatchResponse) Reset()
func (*WatchResponse) Size ¶
func (m *WatchResponse) Size() (n int)
func (*WatchResponse) String ¶
func (m *WatchResponse) String() string
func (*WatchResponse) Unmarshal ¶
func (m *WatchResponse) Unmarshal(dAtA []byte) error
func (*WatchResponse) XXX_DiscardUnknown ¶
func (m *WatchResponse) XXX_DiscardUnknown()
func (*WatchResponse) XXX_Marshal ¶
func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WatchResponse) XXX_Merge ¶
func (m *WatchResponse) XXX_Merge(src proto.Message)
func (*WatchResponse) XXX_Size ¶
func (m *WatchResponse) XXX_Size() int
func (*WatchResponse) XXX_Unmarshal ¶
func (m *WatchResponse) XXX_Unmarshal(b []byte) error