Documentation
¶
Index ¶
- Variables
- func DRPCRegisterNodeSync(mux drpc.Mux, impl DRPCNodeSyncServer) error
- type AdoptArchiveRequest
- func (*AdoptArchiveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AdoptArchiveRequest) GetCompressedSize() int64
- func (x *AdoptArchiveRequest) GetEager() bool
- func (x *AdoptArchiveRequest) GetNewHash() string
- func (x *AdoptArchiveRequest) GetOldHash() string
- func (x *AdoptArchiveRequest) GetSpaceId() string
- func (x *AdoptArchiveRequest) GetSrcKey() string
- func (x *AdoptArchiveRequest) GetUncompressedSize() int64
- func (m *AdoptArchiveRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AdoptArchiveRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *AdoptArchiveRequest) MarshalVT() (dAtA []byte, err error)
- func (*AdoptArchiveRequest) ProtoMessage()
- func (x *AdoptArchiveRequest) ProtoReflect() protoreflect.Message
- func (x *AdoptArchiveRequest) Reset()
- func (m *AdoptArchiveRequest) SizeVT() (n int)
- func (x *AdoptArchiveRequest) String() string
- func (m *AdoptArchiveRequest) UnmarshalVT(dAtA []byte) error
- type AdoptArchiveResponse
- func (*AdoptArchiveResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AdoptArchiveResponse) GetResult() AdoptArchiveResult
- func (m *AdoptArchiveResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AdoptArchiveResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *AdoptArchiveResponse) MarshalVT() (dAtA []byte, err error)
- func (*AdoptArchiveResponse) ProtoMessage()
- func (x *AdoptArchiveResponse) ProtoReflect() protoreflect.Message
- func (x *AdoptArchiveResponse) Reset()
- func (m *AdoptArchiveResponse) SizeVT() (n int)
- func (x *AdoptArchiveResponse) String() string
- func (m *AdoptArchiveResponse) UnmarshalVT(dAtA []byte) error
- type AdoptArchiveResult
- func (AdoptArchiveResult) Descriptor() protoreflect.EnumDescriptor
- func (x AdoptArchiveResult) Enum() *AdoptArchiveResult
- func (AdoptArchiveResult) EnumDescriptor() ([]byte, []int)deprecated
- func (x AdoptArchiveResult) Number() protoreflect.EnumNumber
- func (x AdoptArchiveResult) String() string
- func (AdoptArchiveResult) Type() protoreflect.EnumType
- type ColdSyncProtocolType
- func (ColdSyncProtocolType) Descriptor() protoreflect.EnumDescriptor
- func (x ColdSyncProtocolType) Enum() *ColdSyncProtocolType
- func (ColdSyncProtocolType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ColdSyncProtocolType) Number() protoreflect.EnumNumber
- func (x ColdSyncProtocolType) String() string
- func (ColdSyncProtocolType) Type() protoreflect.EnumType
- type ColdSyncRequest
- func (*ColdSyncRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ColdSyncRequest) GetProtocolType() ColdSyncProtocolType
- func (x *ColdSyncRequest) GetSpaceId() string
- func (m *ColdSyncRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ColdSyncRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ColdSyncRequest) MarshalVT() (dAtA []byte, err error)
- func (*ColdSyncRequest) ProtoMessage()
- func (x *ColdSyncRequest) ProtoReflect() protoreflect.Message
- func (x *ColdSyncRequest) Reset()
- func (m *ColdSyncRequest) SizeVT() (n int)
- func (x *ColdSyncRequest) String() string
- func (m *ColdSyncRequest) UnmarshalVT(dAtA []byte) error
- type ColdSyncResponse
- func (*ColdSyncResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ColdSyncResponse) GetCrc32() uint32
- func (x *ColdSyncResponse) GetData() []byte
- func (x *ColdSyncResponse) GetFilename() string
- func (x *ColdSyncResponse) GetProtocolType() ColdSyncProtocolType
- func (m *ColdSyncResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ColdSyncResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *ColdSyncResponse) MarshalVT() (dAtA []byte, err error)
- func (*ColdSyncResponse) ProtoMessage()
- func (x *ColdSyncResponse) ProtoReflect() protoreflect.Message
- func (x *ColdSyncResponse) Reset()
- func (m *ColdSyncResponse) SizeVT() (n int)
- func (x *ColdSyncResponse) String() string
- func (m *ColdSyncResponse) UnmarshalVT(dAtA []byte) error
- type DRPCNodeSyncClient
- type DRPCNodeSyncDescription
- type DRPCNodeSyncServer
- type DRPCNodeSyncUnimplementedServer
- func (s *DRPCNodeSyncUnimplementedServer) AdoptArchive(context.Context, *AdoptArchiveRequest) (*AdoptArchiveResponse, error)
- func (s *DRPCNodeSyncUnimplementedServer) ColdSync(*ColdSyncRequest, DRPCNodeSync_ColdSyncStream) error
- func (s *DRPCNodeSyncUnimplementedServer) PartitionSync(context.Context, *PartitionSyncRequest) (*PartitionSyncResponse, error)
- type DRPCNodeSync_AdoptArchiveStream
- type DRPCNodeSync_ColdSyncClient
- type DRPCNodeSync_ColdSyncStream
- type DRPCNodeSync_PartitionSyncStream
- type ErrCodes
- type PartitionSyncRange
- func (*PartitionSyncRange) Descriptor() ([]byte, []int)deprecated
- func (x *PartitionSyncRange) GetElements() bool
- func (x *PartitionSyncRange) GetFrom() uint64
- func (x *PartitionSyncRange) GetLimit() uint32
- func (x *PartitionSyncRange) GetTo() uint64
- func (m *PartitionSyncRange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PartitionSyncRange) MarshalToVT(dAtA []byte) (int, error)
- func (m *PartitionSyncRange) MarshalVT() (dAtA []byte, err error)
- func (*PartitionSyncRange) ProtoMessage()
- func (x *PartitionSyncRange) ProtoReflect() protoreflect.Message
- func (x *PartitionSyncRange) Reset()
- func (m *PartitionSyncRange) SizeVT() (n int)
- func (x *PartitionSyncRange) String() string
- func (m *PartitionSyncRange) UnmarshalVT(dAtA []byte) error
- type PartitionSyncRequest
- func (*PartitionSyncRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PartitionSyncRequest) GetPartitionId() uint64
- func (x *PartitionSyncRequest) GetRanges() []*PartitionSyncRange
- func (m *PartitionSyncRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PartitionSyncRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *PartitionSyncRequest) MarshalVT() (dAtA []byte, err error)
- func (*PartitionSyncRequest) ProtoMessage()
- func (x *PartitionSyncRequest) ProtoReflect() protoreflect.Message
- func (x *PartitionSyncRequest) Reset()
- func (m *PartitionSyncRequest) SizeVT() (n int)
- func (x *PartitionSyncRequest) String() string
- func (m *PartitionSyncRequest) UnmarshalVT(dAtA []byte) error
- type PartitionSyncResponse
- func (*PartitionSyncResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PartitionSyncResponse) GetResults() []*PartitionSyncResult
- func (m *PartitionSyncResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PartitionSyncResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *PartitionSyncResponse) MarshalVT() (dAtA []byte, err error)
- func (*PartitionSyncResponse) ProtoMessage()
- func (x *PartitionSyncResponse) ProtoReflect() protoreflect.Message
- func (x *PartitionSyncResponse) Reset()
- func (m *PartitionSyncResponse) SizeVT() (n int)
- func (x *PartitionSyncResponse) String() string
- func (m *PartitionSyncResponse) UnmarshalVT(dAtA []byte) error
- type PartitionSyncResult
- func (*PartitionSyncResult) Descriptor() ([]byte, []int)deprecated
- func (x *PartitionSyncResult) GetCount() uint32
- func (x *PartitionSyncResult) GetElements() []*PartitionSyncResultElement
- func (x *PartitionSyncResult) GetHash() []byte
- func (m *PartitionSyncResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PartitionSyncResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *PartitionSyncResult) MarshalVT() (dAtA []byte, err error)
- func (*PartitionSyncResult) ProtoMessage()
- func (x *PartitionSyncResult) ProtoReflect() protoreflect.Message
- func (x *PartitionSyncResult) Reset()
- func (m *PartitionSyncResult) SizeVT() (n int)
- func (x *PartitionSyncResult) String() string
- func (m *PartitionSyncResult) UnmarshalVT(dAtA []byte) error
- type PartitionSyncResultElement
- func (*PartitionSyncResultElement) Descriptor() ([]byte, []int)deprecated
- func (x *PartitionSyncResultElement) GetHead() string
- func (x *PartitionSyncResultElement) GetId() string
- func (m *PartitionSyncResultElement) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PartitionSyncResultElement) MarshalToVT(dAtA []byte) (int, error)
- func (m *PartitionSyncResultElement) MarshalVT() (dAtA []byte, err error)
- func (*PartitionSyncResultElement) ProtoMessage()
- func (x *PartitionSyncResultElement) ProtoReflect() protoreflect.Message
- func (x *PartitionSyncResultElement) Reset()
- func (m *PartitionSyncResultElement) SizeVT() (n int)
- func (x *PartitionSyncResultElement) String() string
- func (m *PartitionSyncResultElement) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrUnexpected = errGroup.Register(errors.New("unexpected error"), uint64(ErrCodes_Unexpected)) ErrExpectedCoordinator = errGroup.Register(errors.New("this request should be sent by coordinator"), uint64(ErrCodes_ExpectedCoordinator)) ErrUnsupportedStorageType = errGroup.Register(errors.New("unsupported storage"), uint64(ErrCodes_UnsupportedStorage)) ErrSpaceDeleted = errGroup.Register(errors.New("space is deleted"), uint64(ErrCodes_SpaceDeleted)) ErrArchiveObjectMissing = errGroup.Register(errors.New("archive object is missing"), uint64(ErrCodes_ArchiveObjectMissing)) ErrPeerIsNotNode = errGroup.Register(errors.New("peer is not a network node"), uint64(ErrCodes_PeerIsNotNode)) ErrNotResponsible = errGroup.Register(errors.New("node is not responsible for the space"), uint64(ErrCodes_NotResponsible)) ErrSpacePendingDeletion = errGroup.Register(errors.New("space is pending deletion"), uint64(ErrCodes_SpacePendingDeletion)) )
var ( ErrCodes_name = map[int32]string{ 0: "Unexpected", 1: "ExpectedCoordinator", 2: "UnsupportedStorage", 3: "SpaceDeleted", 4: "ArchiveUnavailable", 5: "ArchiveObjectMissing", 6: "PeerIsNotNode", 7: "NotResponsible", 8: "SpacePendingDeletion", 1000: "ErrorOffset", } ErrCodes_value = map[string]int32{ "Unexpected": 0, "ExpectedCoordinator": 1, "UnsupportedStorage": 2, "SpaceDeleted": 3, "ArchiveUnavailable": 4, "ArchiveObjectMissing": 5, "PeerIsNotNode": 6, "NotResponsible": 7, "SpacePendingDeletion": 8, "ErrorOffset": 1000, } )
Enum value maps for ErrCodes.
var ( ColdSyncProtocolType_name = map[int32]string{ 0: "Pogreb", 1: "AnystoreSqlite", } ColdSyncProtocolType_value = map[string]int32{ "Pogreb": 0, "AnystoreSqlite": 1, } )
Enum value maps for ColdSyncProtocolType.
var ( AdoptArchiveResult_name = map[int32]string{ 0: "AdoptArchiveOk", 1: "AdoptArchiveAlreadyHaveSame", 2: "AdoptArchiveAlreadyHaveDiverged", } AdoptArchiveResult_value = map[string]int32{ "AdoptArchiveOk": 0, "AdoptArchiveAlreadyHaveSame": 1, "AdoptArchiveAlreadyHaveDiverged": 2, } )
Enum value maps for AdoptArchiveResult.
var File_nodesync_nodesyncproto_protos_nodesync_proto protoreflect.FileDescriptor
Functions ¶
func DRPCRegisterNodeSync ¶
func DRPCRegisterNodeSync(mux drpc.Mux, impl DRPCNodeSyncServer) error
Types ¶
type AdoptArchiveRequest ¶ added in v0.13.0
type AdoptArchiveRequest struct {
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
// srcKey is the full key of the gzipped snapshot within the shared bucket (sender's prefix)
SrcKey string `protobuf:"bytes,2,opt,name=srcKey,proto3" json:"srcKey,omitempty"`
// heads hashes of the space at snapshot time, as stored in the sender's index
OldHash string `protobuf:"bytes,3,opt,name=oldHash,proto3" json:"oldHash,omitempty"`
NewHash string `protobuf:"bytes,4,opt,name=newHash,proto3" json:"newHash,omitempty"`
// eager asks the receiver to restore the space in background right away
Eager bool `protobuf:"varint,5,opt,name=eager,proto3" json:"eager,omitempty"`
CompressedSize int64 `protobuf:"varint,6,opt,name=compressedSize,proto3" json:"compressedSize,omitempty"`
UncompressedSize int64 `protobuf:"varint,7,opt,name=uncompressedSize,proto3" json:"uncompressedSize,omitempty"`
// contains filtered or unexported fields
}
func (*AdoptArchiveRequest) Descriptor
deprecated
added in
v0.13.0
func (*AdoptArchiveRequest) Descriptor() ([]byte, []int)
Deprecated: Use AdoptArchiveRequest.ProtoReflect.Descriptor instead.
func (*AdoptArchiveRequest) GetCompressedSize ¶ added in v0.13.0
func (x *AdoptArchiveRequest) GetCompressedSize() int64
func (*AdoptArchiveRequest) GetEager ¶ added in v0.13.0
func (x *AdoptArchiveRequest) GetEager() bool
func (*AdoptArchiveRequest) GetNewHash ¶ added in v0.13.0
func (x *AdoptArchiveRequest) GetNewHash() string
func (*AdoptArchiveRequest) GetOldHash ¶ added in v0.13.0
func (x *AdoptArchiveRequest) GetOldHash() string
func (*AdoptArchiveRequest) GetSpaceId ¶ added in v0.13.0
func (x *AdoptArchiveRequest) GetSpaceId() string
func (*AdoptArchiveRequest) GetSrcKey ¶ added in v0.13.0
func (x *AdoptArchiveRequest) GetSrcKey() string
func (*AdoptArchiveRequest) GetUncompressedSize ¶ added in v0.13.0
func (x *AdoptArchiveRequest) GetUncompressedSize() int64
func (*AdoptArchiveRequest) MarshalToSizedBufferVT ¶ added in v0.13.0
func (m *AdoptArchiveRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*AdoptArchiveRequest) MarshalToVT ¶ added in v0.13.0
func (m *AdoptArchiveRequest) MarshalToVT(dAtA []byte) (int, error)
func (*AdoptArchiveRequest) MarshalVT ¶ added in v0.13.0
func (m *AdoptArchiveRequest) MarshalVT() (dAtA []byte, err error)
func (*AdoptArchiveRequest) ProtoMessage ¶ added in v0.13.0
func (*AdoptArchiveRequest) ProtoMessage()
func (*AdoptArchiveRequest) ProtoReflect ¶ added in v0.13.0
func (x *AdoptArchiveRequest) ProtoReflect() protoreflect.Message
func (*AdoptArchiveRequest) Reset ¶ added in v0.13.0
func (x *AdoptArchiveRequest) Reset()
func (*AdoptArchiveRequest) SizeVT ¶ added in v0.13.0
func (m *AdoptArchiveRequest) SizeVT() (n int)
func (*AdoptArchiveRequest) String ¶ added in v0.13.0
func (x *AdoptArchiveRequest) String() string
func (*AdoptArchiveRequest) UnmarshalVT ¶ added in v0.13.0
func (m *AdoptArchiveRequest) UnmarshalVT(dAtA []byte) error
type AdoptArchiveResponse ¶ added in v0.13.0
type AdoptArchiveResponse struct {
Result AdoptArchiveResult `protobuf:"varint,1,opt,name=result,proto3,enum=anyNodeSync.AdoptArchiveResult" json:"result,omitempty"`
// contains filtered or unexported fields
}
func (*AdoptArchiveResponse) Descriptor
deprecated
added in
v0.13.0
func (*AdoptArchiveResponse) Descriptor() ([]byte, []int)
Deprecated: Use AdoptArchiveResponse.ProtoReflect.Descriptor instead.
func (*AdoptArchiveResponse) GetResult ¶ added in v0.13.0
func (x *AdoptArchiveResponse) GetResult() AdoptArchiveResult
func (*AdoptArchiveResponse) MarshalToSizedBufferVT ¶ added in v0.13.0
func (m *AdoptArchiveResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*AdoptArchiveResponse) MarshalToVT ¶ added in v0.13.0
func (m *AdoptArchiveResponse) MarshalToVT(dAtA []byte) (int, error)
func (*AdoptArchiveResponse) MarshalVT ¶ added in v0.13.0
func (m *AdoptArchiveResponse) MarshalVT() (dAtA []byte, err error)
func (*AdoptArchiveResponse) ProtoMessage ¶ added in v0.13.0
func (*AdoptArchiveResponse) ProtoMessage()
func (*AdoptArchiveResponse) ProtoReflect ¶ added in v0.13.0
func (x *AdoptArchiveResponse) ProtoReflect() protoreflect.Message
func (*AdoptArchiveResponse) Reset ¶ added in v0.13.0
func (x *AdoptArchiveResponse) Reset()
func (*AdoptArchiveResponse) SizeVT ¶ added in v0.13.0
func (m *AdoptArchiveResponse) SizeVT() (n int)
func (*AdoptArchiveResponse) String ¶ added in v0.13.0
func (x *AdoptArchiveResponse) String() string
func (*AdoptArchiveResponse) UnmarshalVT ¶ added in v0.13.0
func (m *AdoptArchiveResponse) UnmarshalVT(dAtA []byte) error
type AdoptArchiveResult ¶ added in v0.13.0
type AdoptArchiveResult int32
const ( // the snapshot was copied and registered AdoptArchiveResult_AdoptArchiveOk AdoptArchiveResult = 0 // the receiver already holds a copy of the space with the same heads: // counts as a durable ACK for the sender AdoptArchiveResult_AdoptArchiveAlreadyHaveSame AdoptArchiveResult = 1 // the receiver already holds a copy with different heads; the sender must // converge via tree sync before the handoff can be acknowledged AdoptArchiveResult_AdoptArchiveAlreadyHaveDiverged AdoptArchiveResult = 2 )
func (AdoptArchiveResult) Descriptor ¶ added in v0.13.0
func (AdoptArchiveResult) Descriptor() protoreflect.EnumDescriptor
func (AdoptArchiveResult) Enum ¶ added in v0.13.0
func (x AdoptArchiveResult) Enum() *AdoptArchiveResult
func (AdoptArchiveResult) EnumDescriptor
deprecated
added in
v0.13.0
func (AdoptArchiveResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use AdoptArchiveResult.Descriptor instead.
func (AdoptArchiveResult) Number ¶ added in v0.13.0
func (x AdoptArchiveResult) Number() protoreflect.EnumNumber
func (AdoptArchiveResult) String ¶ added in v0.13.0
func (x AdoptArchiveResult) String() string
func (AdoptArchiveResult) Type ¶ added in v0.13.0
func (AdoptArchiveResult) Type() protoreflect.EnumType
type ColdSyncProtocolType ¶ added in v0.5.0
type ColdSyncProtocolType int32
const ( ColdSyncProtocolType_Pogreb ColdSyncProtocolType = 0 ColdSyncProtocolType_AnystoreSqlite ColdSyncProtocolType = 1 )
func (ColdSyncProtocolType) Descriptor ¶ added in v0.7.7
func (ColdSyncProtocolType) Descriptor() protoreflect.EnumDescriptor
func (ColdSyncProtocolType) Enum ¶ added in v0.7.7
func (x ColdSyncProtocolType) Enum() *ColdSyncProtocolType
func (ColdSyncProtocolType) EnumDescriptor
deprecated
added in
v0.5.0
func (ColdSyncProtocolType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ColdSyncProtocolType.Descriptor instead.
func (ColdSyncProtocolType) Number ¶ added in v0.7.7
func (x ColdSyncProtocolType) Number() protoreflect.EnumNumber
func (ColdSyncProtocolType) String ¶ added in v0.5.0
func (x ColdSyncProtocolType) String() string
func (ColdSyncProtocolType) Type ¶ added in v0.7.7
func (ColdSyncProtocolType) Type() protoreflect.EnumType
type ColdSyncRequest ¶
type ColdSyncRequest struct {
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
ProtocolType ColdSyncProtocolType `protobuf:"varint,2,opt,name=protocolType,proto3,enum=anyNodeSync.ColdSyncProtocolType" json:"protocolType,omitempty"`
// contains filtered or unexported fields
}
func (*ColdSyncRequest) Descriptor
deprecated
func (*ColdSyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use ColdSyncRequest.ProtoReflect.Descriptor instead.
func (*ColdSyncRequest) GetProtocolType ¶ added in v0.5.0
func (x *ColdSyncRequest) GetProtocolType() ColdSyncProtocolType
func (*ColdSyncRequest) GetSpaceId ¶
func (x *ColdSyncRequest) GetSpaceId() string
func (*ColdSyncRequest) MarshalToSizedBufferVT ¶ added in v0.7.7
func (m *ColdSyncRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ColdSyncRequest) MarshalToVT ¶ added in v0.7.7
func (m *ColdSyncRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ColdSyncRequest) MarshalVT ¶ added in v0.7.7
func (m *ColdSyncRequest) MarshalVT() (dAtA []byte, err error)
func (*ColdSyncRequest) ProtoMessage ¶
func (*ColdSyncRequest) ProtoMessage()
func (*ColdSyncRequest) ProtoReflect ¶ added in v0.7.7
func (x *ColdSyncRequest) ProtoReflect() protoreflect.Message
func (*ColdSyncRequest) Reset ¶
func (x *ColdSyncRequest) Reset()
func (*ColdSyncRequest) SizeVT ¶ added in v0.7.7
func (m *ColdSyncRequest) SizeVT() (n int)
func (*ColdSyncRequest) String ¶
func (x *ColdSyncRequest) String() string
func (*ColdSyncRequest) UnmarshalVT ¶ added in v0.7.7
func (m *ColdSyncRequest) UnmarshalVT(dAtA []byte) error
type ColdSyncResponse ¶
type ColdSyncResponse struct {
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
Crc32 uint32 `protobuf:"varint,4,opt,name=crc32,proto3" json:"crc32,omitempty"`
ProtocolType ColdSyncProtocolType `protobuf:"varint,5,opt,name=protocolType,proto3,enum=anyNodeSync.ColdSyncProtocolType" json:"protocolType,omitempty"`
// contains filtered or unexported fields
}
func (*ColdSyncResponse) Descriptor
deprecated
func (*ColdSyncResponse) Descriptor() ([]byte, []int)
Deprecated: Use ColdSyncResponse.ProtoReflect.Descriptor instead.
func (*ColdSyncResponse) GetCrc32 ¶
func (x *ColdSyncResponse) GetCrc32() uint32
func (*ColdSyncResponse) GetData ¶
func (x *ColdSyncResponse) GetData() []byte
func (*ColdSyncResponse) GetFilename ¶
func (x *ColdSyncResponse) GetFilename() string
func (*ColdSyncResponse) GetProtocolType ¶ added in v0.5.0
func (x *ColdSyncResponse) GetProtocolType() ColdSyncProtocolType
func (*ColdSyncResponse) MarshalToSizedBufferVT ¶ added in v0.7.7
func (m *ColdSyncResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ColdSyncResponse) MarshalToVT ¶ added in v0.7.7
func (m *ColdSyncResponse) MarshalToVT(dAtA []byte) (int, error)
func (*ColdSyncResponse) MarshalVT ¶ added in v0.7.7
func (m *ColdSyncResponse) MarshalVT() (dAtA []byte, err error)
func (*ColdSyncResponse) ProtoMessage ¶
func (*ColdSyncResponse) ProtoMessage()
func (*ColdSyncResponse) ProtoReflect ¶ added in v0.7.7
func (x *ColdSyncResponse) ProtoReflect() protoreflect.Message
func (*ColdSyncResponse) Reset ¶
func (x *ColdSyncResponse) Reset()
func (*ColdSyncResponse) SizeVT ¶ added in v0.7.7
func (m *ColdSyncResponse) SizeVT() (n int)
func (*ColdSyncResponse) String ¶
func (x *ColdSyncResponse) String() string
func (*ColdSyncResponse) UnmarshalVT ¶ added in v0.7.7
func (m *ColdSyncResponse) UnmarshalVT(dAtA []byte) error
type DRPCNodeSyncClient ¶
type DRPCNodeSyncClient interface {
DRPCConn() drpc.Conn
PartitionSync(ctx context.Context, in *PartitionSyncRequest) (*PartitionSyncResponse, error)
ColdSync(ctx context.Context, in *ColdSyncRequest) (DRPCNodeSync_ColdSyncClient, error)
AdoptArchive(ctx context.Context, in *AdoptArchiveRequest) (*AdoptArchiveResponse, error)
}
func NewDRPCNodeSyncClient ¶
func NewDRPCNodeSyncClient(cc drpc.Conn) DRPCNodeSyncClient
type DRPCNodeSyncDescription ¶
type DRPCNodeSyncDescription struct{}
func (DRPCNodeSyncDescription) NumMethods ¶
func (DRPCNodeSyncDescription) NumMethods() int
type DRPCNodeSyncServer ¶
type DRPCNodeSyncServer interface {
PartitionSync(context.Context, *PartitionSyncRequest) (*PartitionSyncResponse, error)
ColdSync(*ColdSyncRequest, DRPCNodeSync_ColdSyncStream) error
AdoptArchive(context.Context, *AdoptArchiveRequest) (*AdoptArchiveResponse, error)
}
type DRPCNodeSyncUnimplementedServer ¶
type DRPCNodeSyncUnimplementedServer struct{}
func (*DRPCNodeSyncUnimplementedServer) AdoptArchive ¶ added in v0.13.0
func (s *DRPCNodeSyncUnimplementedServer) AdoptArchive(context.Context, *AdoptArchiveRequest) (*AdoptArchiveResponse, error)
func (*DRPCNodeSyncUnimplementedServer) ColdSync ¶
func (s *DRPCNodeSyncUnimplementedServer) ColdSync(*ColdSyncRequest, DRPCNodeSync_ColdSyncStream) error
func (*DRPCNodeSyncUnimplementedServer) PartitionSync ¶
func (s *DRPCNodeSyncUnimplementedServer) PartitionSync(context.Context, *PartitionSyncRequest) (*PartitionSyncResponse, error)
type DRPCNodeSync_AdoptArchiveStream ¶ added in v0.13.0
type DRPCNodeSync_AdoptArchiveStream interface {
drpc.Stream
SendAndClose(*AdoptArchiveResponse) error
}
type DRPCNodeSync_ColdSyncClient ¶
type DRPCNodeSync_ColdSyncClient interface {
drpc.Stream
Recv() (*ColdSyncResponse, error)
}
type DRPCNodeSync_ColdSyncStream ¶
type DRPCNodeSync_ColdSyncStream interface {
drpc.Stream
Send(*ColdSyncResponse) error
}
type DRPCNodeSync_PartitionSyncStream ¶
type DRPCNodeSync_PartitionSyncStream interface {
drpc.Stream
SendAndClose(*PartitionSyncResponse) error
}
type ErrCodes ¶
type ErrCodes int32
const ( ErrCodes_Unexpected ErrCodes = 0 ErrCodes_ExpectedCoordinator ErrCodes = 1 ErrCodes_UnsupportedStorage ErrCodes = 2 ErrCodes_SpaceDeleted ErrCodes = 3 ErrCodes_ArchiveObjectMissing ErrCodes = 5 ErrCodes_PeerIsNotNode ErrCodes = 6 ErrCodes_NotResponsible ErrCodes = 7 ErrCodes_SpacePendingDeletion ErrCodes = 8 ErrCodes_ErrorOffset ErrCodes = 1000 )
func (ErrCodes) Descriptor ¶ added in v0.7.7
func (ErrCodes) Descriptor() protoreflect.EnumDescriptor
func (ErrCodes) EnumDescriptor
deprecated
func (ErrCodes) Number ¶ added in v0.7.7
func (x ErrCodes) Number() protoreflect.EnumNumber
func (ErrCodes) Type ¶ added in v0.7.7
func (ErrCodes) Type() protoreflect.EnumType
type PartitionSyncRange ¶
type PartitionSyncRange struct {
From uint64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"`
To uint64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"`
Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
Elements bool `protobuf:"varint,4,opt,name=elements,proto3" json:"elements,omitempty"`
// contains filtered or unexported fields
}
PartitionSyncRange presenting a request for one range
func (*PartitionSyncRange) Descriptor
deprecated
func (*PartitionSyncRange) Descriptor() ([]byte, []int)
Deprecated: Use PartitionSyncRange.ProtoReflect.Descriptor instead.
func (*PartitionSyncRange) GetElements ¶ added in v0.3.9
func (x *PartitionSyncRange) GetElements() bool
func (*PartitionSyncRange) GetFrom ¶
func (x *PartitionSyncRange) GetFrom() uint64
func (*PartitionSyncRange) GetLimit ¶
func (x *PartitionSyncRange) GetLimit() uint32
func (*PartitionSyncRange) GetTo ¶
func (x *PartitionSyncRange) GetTo() uint64
func (*PartitionSyncRange) MarshalToSizedBufferVT ¶ added in v0.7.7
func (m *PartitionSyncRange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PartitionSyncRange) MarshalToVT ¶ added in v0.7.7
func (m *PartitionSyncRange) MarshalToVT(dAtA []byte) (int, error)
func (*PartitionSyncRange) MarshalVT ¶ added in v0.7.7
func (m *PartitionSyncRange) MarshalVT() (dAtA []byte, err error)
func (*PartitionSyncRange) ProtoMessage ¶
func (*PartitionSyncRange) ProtoMessage()
func (*PartitionSyncRange) ProtoReflect ¶ added in v0.7.7
func (x *PartitionSyncRange) ProtoReflect() protoreflect.Message
func (*PartitionSyncRange) Reset ¶
func (x *PartitionSyncRange) Reset()
func (*PartitionSyncRange) SizeVT ¶ added in v0.7.7
func (m *PartitionSyncRange) SizeVT() (n int)
func (*PartitionSyncRange) String ¶
func (x *PartitionSyncRange) String() string
func (*PartitionSyncRange) UnmarshalVT ¶ added in v0.7.7
func (m *PartitionSyncRange) UnmarshalVT(dAtA []byte) error
type PartitionSyncRequest ¶
type PartitionSyncRequest struct {
PartitionId uint64 `protobuf:"varint,1,opt,name=partitionId,proto3" json:"partitionId,omitempty"`
Ranges []*PartitionSyncRange `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
// contains filtered or unexported fields
}
HeadSyncRequest is a request for HeadSync
func (*PartitionSyncRequest) Descriptor
deprecated
func (*PartitionSyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use PartitionSyncRequest.ProtoReflect.Descriptor instead.
func (*PartitionSyncRequest) GetPartitionId ¶
func (x *PartitionSyncRequest) GetPartitionId() uint64
func (*PartitionSyncRequest) GetRanges ¶
func (x *PartitionSyncRequest) GetRanges() []*PartitionSyncRange
func (*PartitionSyncRequest) MarshalToSizedBufferVT ¶ added in v0.7.7
func (m *PartitionSyncRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PartitionSyncRequest) MarshalToVT ¶ added in v0.7.7
func (m *PartitionSyncRequest) MarshalToVT(dAtA []byte) (int, error)
func (*PartitionSyncRequest) MarshalVT ¶ added in v0.7.7
func (m *PartitionSyncRequest) MarshalVT() (dAtA []byte, err error)
func (*PartitionSyncRequest) ProtoMessage ¶
func (*PartitionSyncRequest) ProtoMessage()
func (*PartitionSyncRequest) ProtoReflect ¶ added in v0.7.7
func (x *PartitionSyncRequest) ProtoReflect() protoreflect.Message
func (*PartitionSyncRequest) Reset ¶
func (x *PartitionSyncRequest) Reset()
func (*PartitionSyncRequest) SizeVT ¶ added in v0.7.7
func (m *PartitionSyncRequest) SizeVT() (n int)
func (*PartitionSyncRequest) String ¶
func (x *PartitionSyncRequest) String() string
func (*PartitionSyncRequest) UnmarshalVT ¶ added in v0.7.7
func (m *PartitionSyncRequest) UnmarshalVT(dAtA []byte) error
type PartitionSyncResponse ¶
type PartitionSyncResponse struct {
Results []*PartitionSyncResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// contains filtered or unexported fields
}
PartitionSyncResponse is a response for HeadSync
func (*PartitionSyncResponse) Descriptor
deprecated
func (*PartitionSyncResponse) Descriptor() ([]byte, []int)
Deprecated: Use PartitionSyncResponse.ProtoReflect.Descriptor instead.
func (*PartitionSyncResponse) GetResults ¶
func (x *PartitionSyncResponse) GetResults() []*PartitionSyncResult
func (*PartitionSyncResponse) MarshalToSizedBufferVT ¶ added in v0.7.7
func (m *PartitionSyncResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PartitionSyncResponse) MarshalToVT ¶ added in v0.7.7
func (m *PartitionSyncResponse) MarshalToVT(dAtA []byte) (int, error)
func (*PartitionSyncResponse) MarshalVT ¶ added in v0.7.7
func (m *PartitionSyncResponse) MarshalVT() (dAtA []byte, err error)
func (*PartitionSyncResponse) ProtoMessage ¶
func (*PartitionSyncResponse) ProtoMessage()
func (*PartitionSyncResponse) ProtoReflect ¶ added in v0.7.7
func (x *PartitionSyncResponse) ProtoReflect() protoreflect.Message
func (*PartitionSyncResponse) Reset ¶
func (x *PartitionSyncResponse) Reset()
func (*PartitionSyncResponse) SizeVT ¶ added in v0.7.7
func (m *PartitionSyncResponse) SizeVT() (n int)
func (*PartitionSyncResponse) String ¶
func (x *PartitionSyncResponse) String() string
func (*PartitionSyncResponse) UnmarshalVT ¶ added in v0.7.7
func (m *PartitionSyncResponse) UnmarshalVT(dAtA []byte) error
type PartitionSyncResult ¶
type PartitionSyncResult struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Elements []*PartitionSyncResultElement `protobuf:"bytes,2,rep,name=elements,proto3" json:"elements,omitempty"`
Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
PartitionSyncResult presenting a response for one range
func (*PartitionSyncResult) Descriptor
deprecated
func (*PartitionSyncResult) Descriptor() ([]byte, []int)
Deprecated: Use PartitionSyncResult.ProtoReflect.Descriptor instead.
func (*PartitionSyncResult) GetCount ¶
func (x *PartitionSyncResult) GetCount() uint32
func (*PartitionSyncResult) GetElements ¶
func (x *PartitionSyncResult) GetElements() []*PartitionSyncResultElement
func (*PartitionSyncResult) GetHash ¶
func (x *PartitionSyncResult) GetHash() []byte
func (*PartitionSyncResult) MarshalToSizedBufferVT ¶ added in v0.7.7
func (m *PartitionSyncResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PartitionSyncResult) MarshalToVT ¶ added in v0.7.7
func (m *PartitionSyncResult) MarshalToVT(dAtA []byte) (int, error)
func (*PartitionSyncResult) MarshalVT ¶ added in v0.7.7
func (m *PartitionSyncResult) MarshalVT() (dAtA []byte, err error)
func (*PartitionSyncResult) ProtoMessage ¶
func (*PartitionSyncResult) ProtoMessage()
func (*PartitionSyncResult) ProtoReflect ¶ added in v0.7.7
func (x *PartitionSyncResult) ProtoReflect() protoreflect.Message
func (*PartitionSyncResult) Reset ¶
func (x *PartitionSyncResult) Reset()
func (*PartitionSyncResult) SizeVT ¶ added in v0.7.7
func (m *PartitionSyncResult) SizeVT() (n int)
func (*PartitionSyncResult) String ¶
func (x *PartitionSyncResult) String() string
func (*PartitionSyncResult) UnmarshalVT ¶ added in v0.7.7
func (m *PartitionSyncResult) UnmarshalVT(dAtA []byte) error
type PartitionSyncResultElement ¶
type PartitionSyncResultElement struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Head string `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"`
// contains filtered or unexported fields
}
PartitionSyncResultElement presenting state of one object
func (*PartitionSyncResultElement) Descriptor
deprecated
func (*PartitionSyncResultElement) Descriptor() ([]byte, []int)
Deprecated: Use PartitionSyncResultElement.ProtoReflect.Descriptor instead.
func (*PartitionSyncResultElement) GetHead ¶
func (x *PartitionSyncResultElement) GetHead() string
func (*PartitionSyncResultElement) GetId ¶
func (x *PartitionSyncResultElement) GetId() string
func (*PartitionSyncResultElement) MarshalToSizedBufferVT ¶ added in v0.7.7
func (m *PartitionSyncResultElement) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PartitionSyncResultElement) MarshalToVT ¶ added in v0.7.7
func (m *PartitionSyncResultElement) MarshalToVT(dAtA []byte) (int, error)
func (*PartitionSyncResultElement) MarshalVT ¶ added in v0.7.7
func (m *PartitionSyncResultElement) MarshalVT() (dAtA []byte, err error)
func (*PartitionSyncResultElement) ProtoMessage ¶
func (*PartitionSyncResultElement) ProtoMessage()
func (*PartitionSyncResultElement) ProtoReflect ¶ added in v0.7.7
func (x *PartitionSyncResultElement) ProtoReflect() protoreflect.Message
func (*PartitionSyncResultElement) Reset ¶
func (x *PartitionSyncResultElement) Reset()
func (*PartitionSyncResultElement) SizeVT ¶ added in v0.7.7
func (m *PartitionSyncResultElement) SizeVT() (n int)
func (*PartitionSyncResultElement) String ¶
func (x *PartitionSyncResultElement) String() string
func (*PartitionSyncResultElement) UnmarshalVT ¶ added in v0.7.7
func (m *PartitionSyncResultElement) UnmarshalVT(dAtA []byte) error