1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Implement sync client send logic

This commit is contained in:
Mikhail Rakhmanov 2025-04-04 15:00:17 +02:00
parent 3def39b702
commit fb2404dde8
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
5 changed files with 405 additions and 104 deletions

View file

@ -1863,6 +1863,58 @@ func (m *StoreKeyValue) GetPeerSignature() []byte {
return nil
}
type StoreKeyValues struct {
KeyValues []*StoreKeyValue `protobuf:"bytes,1,rep,name=keyValues,proto3" json:"keyValues,omitempty"`
}
func (m *StoreKeyValues) Reset() { *m = StoreKeyValues{} }
func (m *StoreKeyValues) String() string { return proto.CompactTextString(m) }
func (*StoreKeyValues) ProtoMessage() {}
func (*StoreKeyValues) Descriptor() ([]byte, []int) {
return fileDescriptor_80e49f1f4ac27799, []int{27}
}
func (m *StoreKeyValues) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StoreKeyValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StoreKeyValues.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *StoreKeyValues) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
b = b[:newLen]
_, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b, nil
}
func (m *StoreKeyValues) XXX_Merge(src proto.Message) {
xxx_messageInfo_StoreKeyValues.Merge(m, src)
}
func (m *StoreKeyValues) XXX_Size() int {
return m.Size()
}
func (m *StoreKeyValues) XXX_DiscardUnknown() {
xxx_messageInfo_StoreKeyValues.DiscardUnknown(m)
}
var xxx_messageInfo_StoreKeyValues proto.InternalMessageInfo
func (m *StoreKeyValues) GetKeyValues() []*StoreKeyValue {
if m != nil {
return m.KeyValues
}
return nil
}
type StoreKeyInner struct {
Peer []byte `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
Identity []byte `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
@ -1876,7 +1928,7 @@ func (m *StoreKeyInner) Reset() { *m = StoreKeyInner{} }
func (m *StoreKeyInner) String() string { return proto.CompactTextString(m) }
func (*StoreKeyInner) ProtoMessage() {}
func (*StoreKeyInner) Descriptor() ([]byte, []int) {
return fileDescriptor_80e49f1f4ac27799, []int{27}
return fileDescriptor_80e49f1f4ac27799, []int{28}
}
func (m *StoreKeyInner) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -1986,6 +2038,7 @@ func init() {
proto.RegisterType((*StoreDiffRequest)(nil), "spacesync.StoreDiffRequest")
proto.RegisterType((*StoreDiffResponse)(nil), "spacesync.StoreDiffResponse")
proto.RegisterType((*StoreKeyValue)(nil), "spacesync.StoreKeyValue")
proto.RegisterType((*StoreKeyValues)(nil), "spacesync.StoreKeyValues")
proto.RegisterType((*StoreKeyInner)(nil), "spacesync.StoreKeyInner")
}
@ -1994,99 +2047,101 @@ func init() {
}
var fileDescriptor_80e49f1f4ac27799 = []byte{
// 1471 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x18, 0x4d, 0x6f, 0x1b, 0x45,
0xd4, 0xbb, 0x4e, 0x1c, 0xfb, 0xc5, 0x71, 0x37, 0x13, 0xb7, 0x31, 0x6e, 0xe5, 0x5a, 0x2b, 0x54,
0xa2, 0x0a, 0xb5, 0x4d, 0x8a, 0x90, 0x5a, 0xe0, 0x90, 0x26, 0x69, 0x63, 0x4a, 0x9a, 0x68, 0xdc,
0x0f, 0x09, 0x89, 0xc3, 0x66, 0x77, 0x92, 0x2c, 0x5d, 0xef, 0x9a, 0x9d, 0x71, 0x1b, 0x1f, 0x39,
0x71, 0x02, 0x71, 0x43, 0x82, 0xdf, 0xc0, 0xff, 0xe0, 0x58, 0x6e, 0x1c, 0x51, 0x7b, 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0x1f, 0x20, 0x23, 0xbc, 0x8f,
0x36, 0xf4, 0x0c, 0xd6, 0x33, 0xa4, 0x0c, 0xe8, 0xfd, 0x9d, 0xbc, 0x65, 0xa0, 0x43, 0x68, 0xea,
0x6b, 0x06, 0xf5, 0x34, 0xfe, 0x92, 0x55, 0xd6, 0xbd, 0x3a, 0x97, 0xae, 0xf2, 0xb8, 0x92, 0xdb,
0x0e, 0xa8, 0x20, 0x31, 0xb3, 0x83, 0xba, 0xfd, 0xf9, 0x0c, 0x89, 0xce, 0x7b, 0x9f, 0xfc, 0xf1,
0xba, 0x67, 0xbc, 0x7a, 0xdd, 0x33, 0xfe, 0x7e, 0xdd, 0x33, 0x7e, 0x7e, 0xd3, 0xab, 0xbc, 0x7a,
0xd3, 0xab, 0xfc, 0xf5, 0xa6, 0x57, 0xf9, 0xba, 0x3b, 0xff, 0xbf, 0x02, 0xc7, 0x35, 0xf1, 0xeb,
0xf6, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x65, 0xb1, 0x1e, 0x5b, 0x3a, 0x10, 0x00, 0x00,
// 1491 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x18, 0x4b, 0x6f, 0x13, 0xc7,
0x3f, 0xbb, 0xce, 0xc3, 0xfe, 0xc5, 0x31, 0x9b, 0x89, 0x21, 0xfe, 0x1b, 0x64, 0xac, 0xd1, 0x5f,
0x34, 0x42, 0x15, 0x90, 0x50, 0x21, 0x41, 0xdb, 0x43, 0x48, 0x02, 0x71, 0x69, 0x48, 0x34, 0xe6,
0x21, 0x55, 0xea, 0x61, 0xb3, 0x3b, 0x49, 0xb6, 0xac, 0x77, 0xdd, 0x9d, 0x31, 0xc4, 0xc7, 0x9e,
0x7a, 0x6a, 0xd5, 0x5b, 0xa5, 0xf6, 0x33, 0xf4, 0x7b, 0xf4, 0x48, 0x6f, 0x3d, 0x56, 0x70, 0xef,
0x67,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 0xf0, 0x1a, 0xac, 0x1a, 0x66, 0xd2, 0xfc, 0x63, 0xac, 0x6d, 0x87,
0x61, 0x66, 0x7b, 0xa2, 0xb8, 0xf0, 0x03, 0x2d, 0x28, 0x78, 0xd4, 0xc3, 0xfd, 0x77, 0x07, 0xf1,
0x77, 0x36, 0xd4, 0x4d, 0x0a, 0xda, 0x86, 0x65, 0x29, 0x23, 0xde, 0x99, 0x26, 0x4a, 0xcf, 0x55,
0x43, 0x0f, 0x71, 0x5f, 0xf5, 0x73, 0x86, 0xe7, 0x01, 0x3f, 0xeb, 0xf9, 0xc4, 0x94, 0x11, 0x41,
0xbb, 0x5e, 0xa8, 0x14, 0x66, 0x41, 0xe7, 0x18, 0x84, 0xa1, 0x9e, 0x43, 0xfa, 0xc1, 0x0a, 0x38,
0xb4, 0x05, 0x4d, 0xa9, 0xb2, 0x4f, 0x39, 0x0f, 0xa2, 0x53, 0x76, 0x54, 0x78, 0xc2, 0x52, 0x1a,
0xba, 0x03, 0x97, 0xca, 0xf0, 0xfa, 0x75, 0x67, 0x50, 0xf1, 0x1f, 0x16, 0x2c, 0x1b, 0x21, 0x89,
0xba, 0x08, 0xe4, 0x03, 0xf1, 0xb1, 0x9a, 0x26, 0x1a, 0x16, 0x55, 0xc8, 0x83, 0x01, 0x65, 0xdc,
0x1d, 0x0c, 0x65, 0x68, 0x15, 0x92, 0x23, 0x04, 0x55, 0xda, 0xd0, 0xfd, 0x57, 0x23, 0x39, 0x02,
0x5d, 0x83, 0x86, 0x28, 0xca, 0xc0, 0x73, 0x79, 0x10, 0x47, 0x8f, 0xe8, 0x58, 0x46, 0x33, 0x4f,
0x26, 0xb0, 0x62, 0x70, 0x30, 0x4a, 0x53, 0xaf, 0xeb, 0x44, 0x7e, 0xa3, 0x1b, 0x80, 0x8c, 0x14,
0x67, 0xd9, 0x58, 0x94, 0x1c, 0x25, 0x14, 0x7c, 0x04, 0x8d, 0xe2, 0x43, 0xa1, 0xee, 0xf4, 0xc3,
0xd6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, 0x30, 0x7e, 0x5e, 0xb4, 0xdf, 0x49, 0x95, 0x31, 0xee, 0x03,
0xe4, 0x84, 0x0f, 0xd1, 0x86, 0x9e, 0xc3, 0x7a, 0x8e, 0x54, 0x01, 0x7d, 0xb8, 0x93, 0xb7, 0x2c,
0x74, 0x08, 0x75, 0x73, 0x61, 0xa1, 0x8e, 0xc1, 0x5f, 0xb2, 0x14, 0xdb, 0x57, 0x67, 0xd2, 0x75,
0x1e, 0x57, 0x0a, 0x7b, 0x06, 0x4d, 0x48, 0x4c, 0x6d, 0xb3, 0x76, 0x77, 0x36, 0x43, 0xaa, 0xf3,
0xfe, 0x27, 0xbf, 0xbf, 0xe9, 0x58, 0xaf, 0xdf, 0x74, 0xac, 0xbf, 0xde, 0x74, 0xac, 0x9f, 0xde,
0x76, 0xe6, 0x5e, 0xbf, 0xed, 0xcc, 0xfd, 0xf9, 0xb6, 0x33, 0xf7, 0x55, 0x7b, 0xf6, 0xff, 0x2f,
0x1c, 0x2f, 0xca, 0x3f, 0xb7, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0xe0, 0xc2, 0x45, 0xba, 0x84,
0x10, 0x00, 0x00,
}
func (m *HeadSyncRange) Marshal() (dAtA []byte, err error) {
@ -3227,6 +3282,43 @@ func (m *StoreKeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
func (m *StoreKeyValues) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *StoreKeyValues) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *StoreKeyValues) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.KeyValues) > 0 {
for iNdEx := len(m.KeyValues) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.KeyValues[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintSpacesync(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *StoreKeyInner) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@ -3815,6 +3907,21 @@ func (m *StoreKeyValue) Size() (n int) {
return n
}
func (m *StoreKeyValues) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.KeyValues) > 0 {
for _, e := range m.KeyValues {
l = e.Size()
n += 1 + l + sovSpacesync(uint64(l))
}
}
return n
}
func (m *StoreKeyInner) Size() (n int) {
if m == nil {
return 0
@ -7092,6 +7199,90 @@ func (m *StoreKeyValue) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *StoreKeyValues) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSpacesync
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: StoreKeyValues: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: StoreKeyValues: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field KeyValues", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSpacesync
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthSpacesync
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthSpacesync
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.KeyValues = append(m.KeyValues, &StoreKeyValue{})
if err := m.KeyValues[len(m.KeyValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipSpacesync(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSpacesync
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *StoreKeyInner) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0