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

WIP key value service, client diff logic

This commit is contained in:
Mikhail Rakhmanov 2025-04-04 20:25:08 +02:00
parent e89566e5bc
commit fe5dced919
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
6 changed files with 651 additions and 117 deletions

View file

@ -1721,7 +1721,8 @@ func (m *AclGetRecordsResponse) GetRecords() [][]byte {
}
type StoreDiffRequest struct {
Ranges []*HeadSyncRange `protobuf:"bytes,3,rep,name=ranges,proto3" json:"ranges,omitempty"`
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
Ranges []*HeadSyncRange `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
}
func (m *StoreDiffRequest) Reset() { *m = StoreDiffRequest{} }
@ -1765,6 +1766,13 @@ func (m *StoreDiffRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_StoreDiffRequest proto.InternalMessageInfo
func (m *StoreDiffRequest) GetSpaceId() string {
if m != nil {
return m.SpaceId
}
return ""
}
func (m *StoreDiffRequest) GetRanges() []*HeadSyncRange {
if m != nil {
return m.Ranges
@ -2044,6 +2052,66 @@ func (m *StoreKeyInner) GetKey() string {
return ""
}
type StorageHeader struct {
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
StorageName string `protobuf:"bytes,2,opt,name=storageName,proto3" json:"storageName,omitempty"`
}
func (m *StorageHeader) Reset() { *m = StorageHeader{} }
func (m *StorageHeader) String() string { return proto.CompactTextString(m) }
func (*StorageHeader) ProtoMessage() {}
func (*StorageHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_80e49f1f4ac27799, []int{29}
}
func (m *StorageHeader) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StorageHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StorageHeader.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 *StorageHeader) 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 *StorageHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_StorageHeader.Merge(m, src)
}
func (m *StorageHeader) XXX_Size() int {
return m.Size()
}
func (m *StorageHeader) XXX_DiscardUnknown() {
xxx_messageInfo_StorageHeader.DiscardUnknown(m)
}
var xxx_messageInfo_StorageHeader proto.InternalMessageInfo
func (m *StorageHeader) GetSpaceId() string {
if m != nil {
return m.SpaceId
}
return ""
}
func (m *StorageHeader) GetStorageName() string {
if m != nil {
return m.StorageName
}
return ""
}
func init() {
proto.RegisterEnum("spacesync.ErrCodes", ErrCodes_name, ErrCodes_value)
proto.RegisterEnum("spacesync.SpaceSubscriptionAction", SpaceSubscriptionAction_name, SpaceSubscriptionAction_value)
@ -2078,6 +2146,7 @@ func init() {
proto.RegisterType((*StoreKeyValue)(nil), "spacesync.StoreKeyValue")
proto.RegisterType((*StoreKeyValues)(nil), "spacesync.StoreKeyValues")
proto.RegisterType((*StoreKeyInner)(nil), "spacesync.StoreKeyInner")
proto.RegisterType((*StorageHeader)(nil), "spacesync.StorageHeader")
}
func init() {
@ -2085,104 +2154,105 @@ func init() {
}
var fileDescriptor_80e49f1f4ac27799 = []byte{
// 1538 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x18, 0x4b, 0x6f, 0xdb, 0x46,
0x5a, 0xa4, 0x6c, 0x3d, 0x3e, 0xcb, 0x0a, 0x3d, 0x96, 0x63, 0xad, 0x12, 0x28, 0x02, 0xb1, 0xc8,
0x1a, 0xc6, 0x6e, 0x12, 0x3b, 0xdb, 0x00, 0x49, 0xdb, 0x83, 0x63, 0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b4, 0xa1, 0xa7, 0xb0, 0x96, 0x23, 0x55, 0x40, 0xef, 0xee, 0xe4, 0x0d,
0x0b, 0x1d, 0x42, 0xcd, 0x5c, 0xa3, 0xa8, 0x65, 0xf0, 0x4f, 0x58, 0xd5, 0xcd, 0x2b, 0x53, 0xe9,
0x3a, 0x8f, 0x8b, 0x85, 0xed, 0x87, 0x46, 0x24, 0xc6, 0x76, 0x6c, 0xb3, 0x3d, 0x9d, 0x21, 0xd5,
0x79, 0xf7, 0xc3, 0x5f, 0x5f, 0xb5, 0xac, 0x97, 0xaf, 0x5a, 0xd6, 0x9f, 0xaf, 0x5a, 0xd6, 0x8f,
0xaf, 0x5b, 0x33, 0x2f, 0x5f, 0xb7, 0x66, 0xfe, 0x78, 0xdd, 0x9a, 0xf9, 0xa2, 0x39, 0xfd, 0x9f,
0x25, 0xc7, 0x65, 0xf9, 0x73, 0xf3, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xfa, 0xd5, 0x33,
0x51, 0x11, 0x00, 0x00,
}
func (m *HeadSyncRange) Marshal() (dAtA []byte, err error) {
@ -3234,9 +3304,16 @@ func (m *StoreDiffRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintSpacesync(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1a
dAtA[i] = 0x12
}
}
if len(m.SpaceId) > 0 {
i -= len(m.SpaceId)
copy(dAtA[i:], m.SpaceId)
i = encodeVarintSpacesync(dAtA, i, uint64(len(m.SpaceId)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
@ -3428,6 +3505,43 @@ func (m *StoreKeyInner) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
func (m *StorageHeader) 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 *StorageHeader) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *StorageHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.StorageName) > 0 {
i -= len(m.StorageName)
copy(dAtA[i:], m.StorageName)
i = encodeVarintSpacesync(dAtA, i, uint64(len(m.StorageName)))
i--
dAtA[i] = 0x12
}
if len(m.SpaceId) > 0 {
i -= len(m.SpaceId)
copy(dAtA[i:], m.SpaceId)
i = encodeVarintSpacesync(dAtA, i, uint64(len(m.SpaceId)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func encodeVarintSpacesync(dAtA []byte, offset int, v uint64) int {
offset -= sovSpacesync(v)
base := offset
@ -3907,6 +4021,10 @@ func (m *StoreDiffRequest) Size() (n int) {
}
var l int
_ = l
l = len(m.SpaceId)
if l > 0 {
n += 1 + l + sovSpacesync(uint64(l))
}
if len(m.Ranges) > 0 {
for _, e := range m.Ranges {
l = e.Size()
@ -4003,6 +4121,23 @@ func (m *StoreKeyInner) Size() (n int) {
return n
}
func (m *StorageHeader) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.SpaceId)
if l > 0 {
n += 1 + l + sovSpacesync(uint64(l))
}
l = len(m.StorageName)
if l > 0 {
n += 1 + l + sovSpacesync(uint64(l))
}
return n
}
func sovSpacesync(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
@ -6944,7 +7079,39 @@ func (m *StoreDiffRequest) Unmarshal(dAtA []byte) error {
return fmt.Errorf("proto: StoreDiffRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 3:
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSpacesync
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthSpacesync
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSpacesync
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.SpaceId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
}
@ -7586,6 +7753,120 @@ func (m *StoreKeyInner) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *StorageHeader) 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: StorageHeader: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: StorageHeader: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSpacesync
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthSpacesync
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSpacesync
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.SpaceId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field StorageName", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSpacesync
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthSpacesync
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSpacesync
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.StorageName = string(dAtA[iNdEx:postIndex])
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 skipSpacesync(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0