Documentation
¶
Index ¶
- Variables
- func GetHeads(msg *TreeSyncMessage) (heads []string)
- type ErrorCodes
- type NoDataTreeChange
- func (*NoDataTreeChange) Descriptor() ([]byte, []int)deprecated
- func (x *NoDataTreeChange) GetAclHeadId() string
- func (x *NoDataTreeChange) GetDataType() string
- func (x *NoDataTreeChange) GetIdentity() []byte
- func (x *NoDataTreeChange) GetIsSnapshot() bool
- func (x *NoDataTreeChange) GetReadKeyId() string
- func (x *NoDataTreeChange) GetSnapshotBaseId() string
- func (x *NoDataTreeChange) GetTimestamp() int64
- func (x *NoDataTreeChange) GetTreeHeadIds() []string
- func (m *NoDataTreeChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NoDataTreeChange) MarshalToVT(dAtA []byte) (int, error)
- func (m *NoDataTreeChange) MarshalVT() (dAtA []byte, err error)
- func (*NoDataTreeChange) ProtoMessage()
- func (x *NoDataTreeChange) ProtoReflect() protoreflect.Message
- func (x *NoDataTreeChange) Reset()
- func (m *NoDataTreeChange) SizeVT() (n int)
- func (x *NoDataTreeChange) String() string
- func (m *NoDataTreeChange) UnmarshalVT(dAtA []byte) error
- type RawTreeChange
- func (*RawTreeChange) Descriptor() ([]byte, []int)deprecated
- func (x *RawTreeChange) GetPayload() []byte
- func (x *RawTreeChange) GetSignature() []byte
- func (m *RawTreeChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RawTreeChange) MarshalToVT(dAtA []byte) (int, error)
- func (m *RawTreeChange) MarshalVT() (dAtA []byte, err error)
- func (*RawTreeChange) ProtoMessage()
- func (x *RawTreeChange) ProtoReflect() protoreflect.Message
- func (x *RawTreeChange) Reset()
- func (m *RawTreeChange) SizeVT() (n int)
- func (x *RawTreeChange) String() string
- func (m *RawTreeChange) UnmarshalVT(dAtA []byte) error
- type RawTreeChangeWithId
- func (*RawTreeChangeWithId) Descriptor() ([]byte, []int)deprecated
- func (x *RawTreeChangeWithId) GetId() string
- func (x *RawTreeChangeWithId) GetRawChange() []byte
- func (m *RawTreeChangeWithId) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RawTreeChangeWithId) MarshalToVT(dAtA []byte) (int, error)
- func (m *RawTreeChangeWithId) MarshalVT() (dAtA []byte, err error)
- func (*RawTreeChangeWithId) ProtoMessage()
- func (x *RawTreeChangeWithId) ProtoReflect() protoreflect.Message
- func (x *RawTreeChangeWithId) Reset()
- func (m *RawTreeChangeWithId) SizeVT() (n int)
- func (x *RawTreeChangeWithId) String() string
- func (m *RawTreeChangeWithId) UnmarshalVT(dAtA []byte) error
- type ReducedTreeChange
- func (*ReducedTreeChange) Descriptor() ([]byte, []int)deprecated
- func (x *ReducedTreeChange) GetTreeHeadIds() []string
- func (m *ReducedTreeChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ReducedTreeChange) MarshalToVT(dAtA []byte) (int, error)
- func (m *ReducedTreeChange) MarshalVT() (dAtA []byte, err error)
- func (*ReducedTreeChange) ProtoMessage()
- func (x *ReducedTreeChange) ProtoReflect() protoreflect.Message
- func (x *ReducedTreeChange) Reset()
- func (m *ReducedTreeChange) SizeVT() (n int)
- func (x *ReducedTreeChange) String() string
- func (m *ReducedTreeChange) UnmarshalVT(dAtA []byte) error
- type RootChange
- func (*RootChange) Descriptor() ([]byte, []int)deprecated
- func (x *RootChange) GetAclHeadId() string
- func (x *RootChange) GetChangePayload() []byte
- func (x *RootChange) GetChangeType() string
- func (x *RootChange) GetIdentity() []byte
- func (x *RootChange) GetIsDerived() bool
- func (x *RootChange) GetSeed() []byte
- func (x *RootChange) GetSpaceId() string
- func (x *RootChange) GetTimestamp() int64
- func (m *RootChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RootChange) MarshalToVT(dAtA []byte) (int, error)
- func (m *RootChange) MarshalVT() (dAtA []byte, err error)
- func (*RootChange) ProtoMessage()
- func (x *RootChange) ProtoReflect() protoreflect.Message
- func (x *RootChange) Reset()
- func (m *RootChange) SizeVT() (n int)
- func (x *RootChange) String() string
- func (m *RootChange) UnmarshalVT(dAtA []byte) error
- type TreeChange
- func (*TreeChange) Descriptor() ([]byte, []int)deprecated
- func (x *TreeChange) GetAclHeadId() string
- func (x *TreeChange) GetChangesData() []byte
- func (x *TreeChange) GetDataType() string
- func (x *TreeChange) GetIdentity() []byte
- func (x *TreeChange) GetIsSnapshot() bool
- func (x *TreeChange) GetReadKeyId() string
- func (x *TreeChange) GetSnapshotBaseId() string
- func (x *TreeChange) GetTimestamp() int64
- func (x *TreeChange) GetTreeHeadIds() []string
- func (m *TreeChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TreeChange) MarshalToVT(dAtA []byte) (int, error)
- func (m *TreeChange) MarshalVT() (dAtA []byte, err error)
- func (*TreeChange) ProtoMessage()
- func (x *TreeChange) ProtoReflect() protoreflect.Message
- func (x *TreeChange) Reset()
- func (m *TreeChange) SizeVT() (n int)
- func (x *TreeChange) String() string
- func (m *TreeChange) UnmarshalVT(dAtA []byte) error
- type TreeChangeInfo
- func (*TreeChangeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TreeChangeInfo) GetChangePayload() []byte
- func (x *TreeChangeInfo) GetChangeType() string
- func (m *TreeChangeInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TreeChangeInfo) MarshalToVT(dAtA []byte) (int, error)
- func (m *TreeChangeInfo) MarshalVT() (dAtA []byte, err error)
- func (*TreeChangeInfo) ProtoMessage()
- func (x *TreeChangeInfo) ProtoReflect() protoreflect.Message
- func (x *TreeChangeInfo) Reset()
- func (m *TreeChangeInfo) SizeVT() (n int)
- func (x *TreeChangeInfo) String() string
- func (m *TreeChangeInfo) UnmarshalVT(dAtA []byte) error
- type TreeErrorResponse
- func (*TreeErrorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TreeErrorResponse) GetErrCode() uint64
- func (x *TreeErrorResponse) GetError() string
- func (m *TreeErrorResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TreeErrorResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *TreeErrorResponse) MarshalVT() (dAtA []byte, err error)
- func (*TreeErrorResponse) ProtoMessage()
- func (x *TreeErrorResponse) ProtoReflect() protoreflect.Message
- func (x *TreeErrorResponse) Reset()
- func (m *TreeErrorResponse) SizeVT() (n int)
- func (x *TreeErrorResponse) String() string
- func (m *TreeErrorResponse) UnmarshalVT(dAtA []byte) error
- type TreeFullSyncRequest
- func (*TreeFullSyncRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TreeFullSyncRequest) GetChanges() []*RawTreeChangeWithId
- func (x *TreeFullSyncRequest) GetHeads() []string
- func (x *TreeFullSyncRequest) GetSnapshotPath() []string
- func (m *TreeFullSyncRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TreeFullSyncRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *TreeFullSyncRequest) MarshalVT() (dAtA []byte, err error)
- func (*TreeFullSyncRequest) ProtoMessage()
- func (x *TreeFullSyncRequest) ProtoReflect() protoreflect.Message
- func (x *TreeFullSyncRequest) Reset()
- func (m *TreeFullSyncRequest) SizeVT() (n int)
- func (x *TreeFullSyncRequest) String() string
- func (m *TreeFullSyncRequest) UnmarshalVT(dAtA []byte) error
- type TreeFullSyncResponse
- func (*TreeFullSyncResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TreeFullSyncResponse) GetChanges() []*RawTreeChangeWithId
- func (x *TreeFullSyncResponse) GetHeads() []string
- func (x *TreeFullSyncResponse) GetSnapshotPath() []string
- func (m *TreeFullSyncResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TreeFullSyncResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *TreeFullSyncResponse) MarshalVT() (dAtA []byte, err error)
- func (*TreeFullSyncResponse) ProtoMessage()
- func (x *TreeFullSyncResponse) ProtoReflect() protoreflect.Message
- func (x *TreeFullSyncResponse) Reset()
- func (m *TreeFullSyncResponse) SizeVT() (n int)
- func (x *TreeFullSyncResponse) String() string
- func (m *TreeFullSyncResponse) UnmarshalVT(dAtA []byte) error
- type TreeHeadUpdate
- func (*TreeHeadUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *TreeHeadUpdate) GetChanges() []*RawTreeChangeWithId
- func (x *TreeHeadUpdate) GetHeads() []string
- func (x *TreeHeadUpdate) GetSnapshotPath() []string
- func (m *TreeHeadUpdate) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TreeHeadUpdate) MarshalToVT(dAtA []byte) (int, error)
- func (m *TreeHeadUpdate) MarshalVT() (dAtA []byte, err error)
- func (*TreeHeadUpdate) ProtoMessage()
- func (x *TreeHeadUpdate) ProtoReflect() protoreflect.Message
- func (x *TreeHeadUpdate) Reset()
- func (m *TreeHeadUpdate) SizeVT() (n int)
- func (x *TreeHeadUpdate) String() string
- func (m *TreeHeadUpdate) UnmarshalVT(dAtA []byte) error
- type TreeSyncContentValue
- func (*TreeSyncContentValue) Descriptor() ([]byte, []int)deprecated
- func (x *TreeSyncContentValue) GetErrorResponse() *TreeErrorResponse
- func (x *TreeSyncContentValue) GetFullSyncRequest() *TreeFullSyncRequest
- func (x *TreeSyncContentValue) GetFullSyncResponse() *TreeFullSyncResponse
- func (x *TreeSyncContentValue) GetHeadUpdate() *TreeHeadUpdate
- func (x *TreeSyncContentValue) GetValue() isTreeSyncContentValue_Value
- func (m *TreeSyncContentValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TreeSyncContentValue) MarshalToVT(dAtA []byte) (int, error)
- func (m *TreeSyncContentValue) MarshalVT() (dAtA []byte, err error)
- func (*TreeSyncContentValue) ProtoMessage()
- func (x *TreeSyncContentValue) ProtoReflect() protoreflect.Message
- func (x *TreeSyncContentValue) Reset()
- func (m *TreeSyncContentValue) SizeVT() (n int)
- func (x *TreeSyncContentValue) String() string
- func (m *TreeSyncContentValue) UnmarshalVT(dAtA []byte) error
- type TreeSyncContentValue_ErrorResponse
- type TreeSyncContentValue_FullSyncRequest
- type TreeSyncContentValue_FullSyncResponse
- type TreeSyncContentValue_HeadUpdate
- type TreeSyncMessage
- func WrapError(err error, rootChange *RawTreeChangeWithId) *TreeSyncMessage
- func WrapFullRequest(request *TreeFullSyncRequest, rootChange *RawTreeChangeWithId) *TreeSyncMessage
- func WrapFullResponse(response *TreeFullSyncResponse, rootChange *RawTreeChangeWithId) *TreeSyncMessage
- func WrapHeadUpdate(update *TreeHeadUpdate, rootChange *RawTreeChangeWithId) *TreeSyncMessage
- func (*TreeSyncMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TreeSyncMessage) GetContent() *TreeSyncContentValue
- func (x *TreeSyncMessage) GetRootChange() *RawTreeChangeWithId
- func (m *TreeSyncMessage) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TreeSyncMessage) MarshalToVT(dAtA []byte) (int, error)
- func (m *TreeSyncMessage) MarshalVT() (dAtA []byte, err error)
- func (*TreeSyncMessage) ProtoMessage()
- func (x *TreeSyncMessage) ProtoReflect() protoreflect.Message
- func (x *TreeSyncMessage) Reset()
- func (m *TreeSyncMessage) SizeVT() (n int)
- func (x *TreeSyncMessage) String() string
- func (m *TreeSyncMessage) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrUnexpected = errGroup.Register(errors.New("unexpected error"), uint64(ErrorCodes_Unexpected)) ErrGetTree = errGroup.Register(errors.New("tree not found"), uint64(ErrorCodes_GetTreeError)) ErrFullSync = errGroup.Register(errors.New("full sync request error"), uint64(ErrorCodes_FullSyncRequestError)) )
var ( ErrorCodes_name = map[int32]string{ 0: "Unexpected", 1: "GetTreeError", 2: "FullSyncRequestError", 400: "ErrorOffset", } ErrorCodes_value = map[string]int32{ "Unexpected": 0, "GetTreeError": 1, "FullSyncRequestError": 2, "ErrorOffset": 400, } )
Enum value maps for ErrorCodes.
var File_treechange_proto protoreflect.FileDescriptor
Functions ¶
func GetHeads ¶
func GetHeads(msg *TreeSyncMessage) (heads []string)
Types ¶
type ErrorCodes ¶
type ErrorCodes int32
const ( ErrorCodes_Unexpected ErrorCodes = 0 ErrorCodes_GetTreeError ErrorCodes = 1 ErrorCodes_FullSyncRequestError ErrorCodes = 2 ErrorCodes_ErrorOffset ErrorCodes = 400 )
func (ErrorCodes) Descriptor ¶ added in v0.9.0
func (ErrorCodes) Descriptor() protoreflect.EnumDescriptor
func (ErrorCodes) Enum ¶ added in v0.9.0
func (x ErrorCodes) Enum() *ErrorCodes
func (ErrorCodes) EnumDescriptor
deprecated
func (ErrorCodes) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorCodes.Descriptor instead.
func (ErrorCodes) Number ¶ added in v0.9.0
func (x ErrorCodes) Number() protoreflect.EnumNumber
func (ErrorCodes) String ¶
func (x ErrorCodes) String() string
func (ErrorCodes) Type ¶ added in v0.9.0
func (ErrorCodes) Type() protoreflect.EnumType
type NoDataTreeChange ¶ added in v0.5.0
type NoDataTreeChange struct {
// TreeHeadIds are previous ids for this TreeChange
TreeHeadIds []string `protobuf:"bytes,1,rep,name=treeHeadIds,proto3" json:"treeHeadIds,omitempty"`
// AclHeadId is a cid of latest acl record at the time of this change
AclHeadId string `protobuf:"bytes,2,opt,name=aclHeadId,proto3" json:"aclHeadId,omitempty"`
// SnapshotBaseId is a snapshot (root) of the tree where this change is added
SnapshotBaseId string `protobuf:"bytes,3,opt,name=snapshotBaseId,proto3" json:"snapshotBaseId,omitempty"`
// ReadKeyId is the id of the read key
ReadKeyId string `protobuf:"bytes,5,opt,name=readKeyId,proto3" json:"readKeyId,omitempty"`
// Timestamp is this change creation timestamp
Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Identity is a public key with which the raw payload of this change is signed
Identity []byte `protobuf:"bytes,7,opt,name=identity,proto3" json:"identity,omitempty"`
// IsSnapshot indicates whether this change contains a snapshot of state
IsSnapshot bool `protobuf:"varint,8,opt,name=isSnapshot,proto3" json:"isSnapshot,omitempty"`
// DataType indicates some special parameters of data for the client
DataType string `protobuf:"bytes,9,opt,name=dataType,proto3" json:"dataType,omitempty"`
// contains filtered or unexported fields
}
TreeChange is a change of a tree
func (*NoDataTreeChange) Descriptor
deprecated
added in
v0.5.0
func (*NoDataTreeChange) Descriptor() ([]byte, []int)
Deprecated: Use NoDataTreeChange.ProtoReflect.Descriptor instead.
func (*NoDataTreeChange) GetAclHeadId ¶ added in v0.5.0
func (x *NoDataTreeChange) GetAclHeadId() string
func (*NoDataTreeChange) GetDataType ¶ added in v0.5.0
func (x *NoDataTreeChange) GetDataType() string
func (*NoDataTreeChange) GetIdentity ¶ added in v0.5.0
func (x *NoDataTreeChange) GetIdentity() []byte
func (*NoDataTreeChange) GetIsSnapshot ¶ added in v0.5.0
func (x *NoDataTreeChange) GetIsSnapshot() bool
func (*NoDataTreeChange) GetReadKeyId ¶ added in v0.5.0
func (x *NoDataTreeChange) GetReadKeyId() string
func (*NoDataTreeChange) GetSnapshotBaseId ¶ added in v0.5.0
func (x *NoDataTreeChange) GetSnapshotBaseId() string
func (*NoDataTreeChange) GetTimestamp ¶ added in v0.5.0
func (x *NoDataTreeChange) GetTimestamp() int64
func (*NoDataTreeChange) GetTreeHeadIds ¶ added in v0.5.0
func (x *NoDataTreeChange) GetTreeHeadIds() []string
func (*NoDataTreeChange) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *NoDataTreeChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*NoDataTreeChange) MarshalToVT ¶ added in v0.9.0
func (m *NoDataTreeChange) MarshalToVT(dAtA []byte) (int, error)
func (*NoDataTreeChange) MarshalVT ¶ added in v0.9.0
func (m *NoDataTreeChange) MarshalVT() (dAtA []byte, err error)
func (*NoDataTreeChange) ProtoMessage ¶ added in v0.5.0
func (*NoDataTreeChange) ProtoMessage()
func (*NoDataTreeChange) ProtoReflect ¶ added in v0.9.0
func (x *NoDataTreeChange) ProtoReflect() protoreflect.Message
func (*NoDataTreeChange) Reset ¶ added in v0.5.0
func (x *NoDataTreeChange) Reset()
func (*NoDataTreeChange) SizeVT ¶ added in v0.9.0
func (m *NoDataTreeChange) SizeVT() (n int)
func (*NoDataTreeChange) String ¶ added in v0.5.0
func (x *NoDataTreeChange) String() string
func (*NoDataTreeChange) UnmarshalVT ¶ added in v0.9.0
func (m *NoDataTreeChange) UnmarshalVT(dAtA []byte) error
type RawTreeChange ¶
type RawTreeChange struct {
// Payload is a byte payload containing TreeChange
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
// Signature is a signature made by identity indicated in the TreeChange payload
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
RawTreeChange is a marshalled TreeChange (or RootChange) payload and a signature of this payload
func (*RawTreeChange) Descriptor
deprecated
func (*RawTreeChange) Descriptor() ([]byte, []int)
Deprecated: Use RawTreeChange.ProtoReflect.Descriptor instead.
func (*RawTreeChange) GetPayload ¶
func (x *RawTreeChange) GetPayload() []byte
func (*RawTreeChange) GetSignature ¶
func (x *RawTreeChange) GetSignature() []byte
func (*RawTreeChange) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *RawTreeChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RawTreeChange) MarshalToVT ¶ added in v0.9.0
func (m *RawTreeChange) MarshalToVT(dAtA []byte) (int, error)
func (*RawTreeChange) MarshalVT ¶ added in v0.9.0
func (m *RawTreeChange) MarshalVT() (dAtA []byte, err error)
func (*RawTreeChange) ProtoMessage ¶
func (*RawTreeChange) ProtoMessage()
func (*RawTreeChange) ProtoReflect ¶ added in v0.9.0
func (x *RawTreeChange) ProtoReflect() protoreflect.Message
func (*RawTreeChange) Reset ¶
func (x *RawTreeChange) Reset()
func (*RawTreeChange) SizeVT ¶ added in v0.9.0
func (m *RawTreeChange) SizeVT() (n int)
func (*RawTreeChange) String ¶
func (x *RawTreeChange) String() string
func (*RawTreeChange) UnmarshalVT ¶ added in v0.9.0
func (m *RawTreeChange) UnmarshalVT(dAtA []byte) error
type RawTreeChangeWithId ¶
type RawTreeChangeWithId struct {
// RawChange is a byte payload of RawTreeChange
RawChange []byte `protobuf:"bytes,1,opt,name=rawChange,proto3" json:"rawChange,omitempty"`
// Id is a cid made from rawChange payload
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
RawTreeChangeWithId is a marshalled RawTreeChange with CID
func (*RawTreeChangeWithId) Descriptor
deprecated
func (*RawTreeChangeWithId) Descriptor() ([]byte, []int)
Deprecated: Use RawTreeChangeWithId.ProtoReflect.Descriptor instead.
func (*RawTreeChangeWithId) GetId ¶
func (x *RawTreeChangeWithId) GetId() string
func (*RawTreeChangeWithId) GetRawChange ¶
func (x *RawTreeChangeWithId) GetRawChange() []byte
func (*RawTreeChangeWithId) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *RawTreeChangeWithId) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RawTreeChangeWithId) MarshalToVT ¶ added in v0.9.0
func (m *RawTreeChangeWithId) MarshalToVT(dAtA []byte) (int, error)
func (*RawTreeChangeWithId) MarshalVT ¶ added in v0.9.0
func (m *RawTreeChangeWithId) MarshalVT() (dAtA []byte, err error)
func (*RawTreeChangeWithId) ProtoMessage ¶
func (*RawTreeChangeWithId) ProtoMessage()
func (*RawTreeChangeWithId) ProtoReflect ¶ added in v0.9.0
func (x *RawTreeChangeWithId) ProtoReflect() protoreflect.Message
func (*RawTreeChangeWithId) Reset ¶
func (x *RawTreeChangeWithId) Reset()
func (*RawTreeChangeWithId) SizeVT ¶ added in v0.9.0
func (m *RawTreeChangeWithId) SizeVT() (n int)
func (*RawTreeChangeWithId) String ¶
func (x *RawTreeChangeWithId) String() string
func (*RawTreeChangeWithId) UnmarshalVT ¶ added in v0.9.0
func (m *RawTreeChangeWithId) UnmarshalVT(dAtA []byte) error
type ReducedTreeChange ¶ added in v0.5.0
type ReducedTreeChange struct {
// TreeHeadIds are previous ids for this TreeChange
TreeHeadIds []string `protobuf:"bytes,1,rep,name=treeHeadIds,proto3" json:"treeHeadIds,omitempty"`
// contains filtered or unexported fields
}
func (*ReducedTreeChange) Descriptor
deprecated
added in
v0.5.0
func (*ReducedTreeChange) Descriptor() ([]byte, []int)
Deprecated: Use ReducedTreeChange.ProtoReflect.Descriptor instead.
func (*ReducedTreeChange) GetTreeHeadIds ¶ added in v0.5.0
func (x *ReducedTreeChange) GetTreeHeadIds() []string
func (*ReducedTreeChange) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *ReducedTreeChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ReducedTreeChange) MarshalToVT ¶ added in v0.9.0
func (m *ReducedTreeChange) MarshalToVT(dAtA []byte) (int, error)
func (*ReducedTreeChange) MarshalVT ¶ added in v0.9.0
func (m *ReducedTreeChange) MarshalVT() (dAtA []byte, err error)
func (*ReducedTreeChange) ProtoMessage ¶ added in v0.5.0
func (*ReducedTreeChange) ProtoMessage()
func (*ReducedTreeChange) ProtoReflect ¶ added in v0.9.0
func (x *ReducedTreeChange) ProtoReflect() protoreflect.Message
func (*ReducedTreeChange) Reset ¶ added in v0.5.0
func (x *ReducedTreeChange) Reset()
func (*ReducedTreeChange) SizeVT ¶ added in v0.9.0
func (m *ReducedTreeChange) SizeVT() (n int)
func (*ReducedTreeChange) String ¶ added in v0.5.0
func (x *ReducedTreeChange) String() string
func (*ReducedTreeChange) UnmarshalVT ¶ added in v0.9.0
func (m *ReducedTreeChange) UnmarshalVT(dAtA []byte) error
type RootChange ¶
type RootChange struct {
// AclHeadId is a cid of latest acl record at the time of tree creation
AclHeadId string `protobuf:"bytes,1,opt,name=aclHeadId,proto3" json:"aclHeadId,omitempty"`
// SpaceId is an id of space where the document is placed
SpaceId string `protobuf:"bytes,2,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
// ChangeType is a type of tree which this RootChange is a root of
ChangeType string `protobuf:"bytes,3,opt,name=changeType,proto3" json:"changeType,omitempty"`
// Timestamp is this change creation timestamp
Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Seed is a random bytes to make root change unique
Seed []byte `protobuf:"bytes,5,opt,name=seed,proto3" json:"seed,omitempty"`
// Identity is a public key of the tree's creator
Identity []byte `protobuf:"bytes,6,opt,name=identity,proto3" json:"identity,omitempty"`
// ChangePayload is a payload related to ChangeType
ChangePayload []byte `protobuf:"bytes,7,opt,name=changePayload,proto3" json:"changePayload,omitempty"`
// IsDerived tells if the tree is derived
IsDerived bool `protobuf:"varint,8,opt,name=isDerived,proto3" json:"isDerived,omitempty"`
// contains filtered or unexported fields
}
RootChange is a root of a tree
func (*RootChange) Descriptor
deprecated
func (*RootChange) Descriptor() ([]byte, []int)
Deprecated: Use RootChange.ProtoReflect.Descriptor instead.
func (*RootChange) GetAclHeadId ¶
func (x *RootChange) GetAclHeadId() string
func (*RootChange) GetChangePayload ¶
func (x *RootChange) GetChangePayload() []byte
func (*RootChange) GetChangeType ¶
func (x *RootChange) GetChangeType() string
func (*RootChange) GetIdentity ¶
func (x *RootChange) GetIdentity() []byte
func (*RootChange) GetIsDerived ¶ added in v0.3.2
func (x *RootChange) GetIsDerived() bool
func (*RootChange) GetSeed ¶
func (x *RootChange) GetSeed() []byte
func (*RootChange) GetSpaceId ¶
func (x *RootChange) GetSpaceId() string
func (*RootChange) GetTimestamp ¶
func (x *RootChange) GetTimestamp() int64
func (*RootChange) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *RootChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RootChange) MarshalToVT ¶ added in v0.9.0
func (m *RootChange) MarshalToVT(dAtA []byte) (int, error)
func (*RootChange) MarshalVT ¶ added in v0.9.0
func (m *RootChange) MarshalVT() (dAtA []byte, err error)
func (*RootChange) ProtoMessage ¶
func (*RootChange) ProtoMessage()
func (*RootChange) ProtoReflect ¶ added in v0.9.0
func (x *RootChange) ProtoReflect() protoreflect.Message
func (*RootChange) Reset ¶
func (x *RootChange) Reset()
func (*RootChange) SizeVT ¶ added in v0.9.0
func (m *RootChange) SizeVT() (n int)
func (*RootChange) String ¶
func (x *RootChange) String() string
func (*RootChange) UnmarshalVT ¶ added in v0.9.0
func (m *RootChange) UnmarshalVT(dAtA []byte) error
type TreeChange ¶
type TreeChange struct {
// TreeHeadIds are previous ids for this TreeChange
TreeHeadIds []string `protobuf:"bytes,1,rep,name=treeHeadIds,proto3" json:"treeHeadIds,omitempty"`
// AclHeadId is a cid of latest acl record at the time of this change
AclHeadId string `protobuf:"bytes,2,opt,name=aclHeadId,proto3" json:"aclHeadId,omitempty"`
// SnapshotBaseId is a snapshot (root) of the tree where this change is added
SnapshotBaseId string `protobuf:"bytes,3,opt,name=snapshotBaseId,proto3" json:"snapshotBaseId,omitempty"`
// ChangesData is an arbitrary payload to be read by the client
ChangesData []byte `protobuf:"bytes,4,opt,name=changesData,proto3" json:"changesData,omitempty"`
// ReadKeyId is the id of the read key
ReadKeyId string `protobuf:"bytes,5,opt,name=readKeyId,proto3" json:"readKeyId,omitempty"`
// Timestamp is this change creation timestamp
Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Identity is a public key with which the raw payload of this change is signed
Identity []byte `protobuf:"bytes,7,opt,name=identity,proto3" json:"identity,omitempty"`
// IsSnapshot indicates whether this change contains a snapshot of state
IsSnapshot bool `protobuf:"varint,8,opt,name=isSnapshot,proto3" json:"isSnapshot,omitempty"`
// DataType indicates some special parameters of data for the client
DataType string `protobuf:"bytes,9,opt,name=dataType,proto3" json:"dataType,omitempty"`
// contains filtered or unexported fields
}
TreeChange is a change of a tree
func (*TreeChange) Descriptor
deprecated
func (*TreeChange) Descriptor() ([]byte, []int)
Deprecated: Use TreeChange.ProtoReflect.Descriptor instead.
func (*TreeChange) GetAclHeadId ¶
func (x *TreeChange) GetAclHeadId() string
func (*TreeChange) GetChangesData ¶
func (x *TreeChange) GetChangesData() []byte
func (*TreeChange) GetDataType ¶ added in v0.3.0
func (x *TreeChange) GetDataType() string
func (*TreeChange) GetIdentity ¶
func (x *TreeChange) GetIdentity() []byte
func (*TreeChange) GetIsSnapshot ¶
func (x *TreeChange) GetIsSnapshot() bool
func (*TreeChange) GetReadKeyId ¶
func (x *TreeChange) GetReadKeyId() string
func (*TreeChange) GetSnapshotBaseId ¶
func (x *TreeChange) GetSnapshotBaseId() string
func (*TreeChange) GetTimestamp ¶
func (x *TreeChange) GetTimestamp() int64
func (*TreeChange) GetTreeHeadIds ¶
func (x *TreeChange) GetTreeHeadIds() []string
func (*TreeChange) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeChange) MarshalToVT ¶ added in v0.9.0
func (m *TreeChange) MarshalToVT(dAtA []byte) (int, error)
func (*TreeChange) MarshalVT ¶ added in v0.9.0
func (m *TreeChange) MarshalVT() (dAtA []byte, err error)
func (*TreeChange) ProtoMessage ¶
func (*TreeChange) ProtoMessage()
func (*TreeChange) ProtoReflect ¶ added in v0.9.0
func (x *TreeChange) ProtoReflect() protoreflect.Message
func (*TreeChange) Reset ¶
func (x *TreeChange) Reset()
func (*TreeChange) SizeVT ¶ added in v0.9.0
func (m *TreeChange) SizeVT() (n int)
func (*TreeChange) String ¶
func (x *TreeChange) String() string
func (*TreeChange) UnmarshalVT ¶ added in v0.9.0
func (m *TreeChange) UnmarshalVT(dAtA []byte) error
type TreeChangeInfo ¶
type TreeChangeInfo struct {
ChangeType string `protobuf:"bytes,1,opt,name=changeType,proto3" json:"changeType,omitempty"`
ChangePayload []byte `protobuf:"bytes,2,opt,name=changePayload,proto3" json:"changePayload,omitempty"`
// contains filtered or unexported fields
}
TreeChangeInfo is used internally in Tree implementation for ease of marshalling
func (*TreeChangeInfo) Descriptor
deprecated
func (*TreeChangeInfo) Descriptor() ([]byte, []int)
Deprecated: Use TreeChangeInfo.ProtoReflect.Descriptor instead.
func (*TreeChangeInfo) GetChangePayload ¶
func (x *TreeChangeInfo) GetChangePayload() []byte
func (*TreeChangeInfo) GetChangeType ¶
func (x *TreeChangeInfo) GetChangeType() string
func (*TreeChangeInfo) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeChangeInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeChangeInfo) MarshalToVT ¶ added in v0.9.0
func (m *TreeChangeInfo) MarshalToVT(dAtA []byte) (int, error)
func (*TreeChangeInfo) MarshalVT ¶ added in v0.9.0
func (m *TreeChangeInfo) MarshalVT() (dAtA []byte, err error)
func (*TreeChangeInfo) ProtoMessage ¶
func (*TreeChangeInfo) ProtoMessage()
func (*TreeChangeInfo) ProtoReflect ¶ added in v0.9.0
func (x *TreeChangeInfo) ProtoReflect() protoreflect.Message
func (*TreeChangeInfo) Reset ¶
func (x *TreeChangeInfo) Reset()
func (*TreeChangeInfo) SizeVT ¶ added in v0.9.0
func (m *TreeChangeInfo) SizeVT() (n int)
func (*TreeChangeInfo) String ¶
func (x *TreeChangeInfo) String() string
func (*TreeChangeInfo) UnmarshalVT ¶ added in v0.9.0
func (m *TreeChangeInfo) UnmarshalVT(dAtA []byte) error
type TreeErrorResponse ¶
type TreeErrorResponse struct {
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
ErrCode uint64 `protobuf:"varint,2,opt,name=errCode,proto3" json:"errCode,omitempty"`
// contains filtered or unexported fields
}
TreeErrorResponse is an error sent as a response for a full sync request
func (*TreeErrorResponse) Descriptor
deprecated
func (*TreeErrorResponse) Descriptor() ([]byte, []int)
Deprecated: Use TreeErrorResponse.ProtoReflect.Descriptor instead.
func (*TreeErrorResponse) GetErrCode ¶
func (x *TreeErrorResponse) GetErrCode() uint64
func (*TreeErrorResponse) GetError ¶
func (x *TreeErrorResponse) GetError() string
func (*TreeErrorResponse) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeErrorResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeErrorResponse) MarshalToVT ¶ added in v0.9.0
func (m *TreeErrorResponse) MarshalToVT(dAtA []byte) (int, error)
func (*TreeErrorResponse) MarshalVT ¶ added in v0.9.0
func (m *TreeErrorResponse) MarshalVT() (dAtA []byte, err error)
func (*TreeErrorResponse) ProtoMessage ¶
func (*TreeErrorResponse) ProtoMessage()
func (*TreeErrorResponse) ProtoReflect ¶ added in v0.9.0
func (x *TreeErrorResponse) ProtoReflect() protoreflect.Message
func (*TreeErrorResponse) Reset ¶
func (x *TreeErrorResponse) Reset()
func (*TreeErrorResponse) SizeVT ¶ added in v0.9.0
func (m *TreeErrorResponse) SizeVT() (n int)
func (*TreeErrorResponse) String ¶
func (x *TreeErrorResponse) String() string
func (*TreeErrorResponse) UnmarshalVT ¶ added in v0.9.0
func (m *TreeErrorResponse) UnmarshalVT(dAtA []byte) error
type TreeFullSyncRequest ¶
type TreeFullSyncRequest struct {
Heads []string `protobuf:"bytes,1,rep,name=heads,proto3" json:"heads,omitempty"`
Changes []*RawTreeChangeWithId `protobuf:"bytes,2,rep,name=changes,proto3" json:"changes,omitempty"`
SnapshotPath []string `protobuf:"bytes,3,rep,name=snapshotPath,proto3" json:"snapshotPath,omitempty"`
// contains filtered or unexported fields
}
TreeHeadUpdate is a message sent when document needs full sync
func (*TreeFullSyncRequest) Descriptor
deprecated
func (*TreeFullSyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use TreeFullSyncRequest.ProtoReflect.Descriptor instead.
func (*TreeFullSyncRequest) GetChanges ¶
func (x *TreeFullSyncRequest) GetChanges() []*RawTreeChangeWithId
func (*TreeFullSyncRequest) GetHeads ¶
func (x *TreeFullSyncRequest) GetHeads() []string
func (*TreeFullSyncRequest) GetSnapshotPath ¶
func (x *TreeFullSyncRequest) GetSnapshotPath() []string
func (*TreeFullSyncRequest) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeFullSyncRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeFullSyncRequest) MarshalToVT ¶ added in v0.9.0
func (m *TreeFullSyncRequest) MarshalToVT(dAtA []byte) (int, error)
func (*TreeFullSyncRequest) MarshalVT ¶ added in v0.9.0
func (m *TreeFullSyncRequest) MarshalVT() (dAtA []byte, err error)
func (*TreeFullSyncRequest) ProtoMessage ¶
func (*TreeFullSyncRequest) ProtoMessage()
func (*TreeFullSyncRequest) ProtoReflect ¶ added in v0.9.0
func (x *TreeFullSyncRequest) ProtoReflect() protoreflect.Message
func (*TreeFullSyncRequest) Reset ¶
func (x *TreeFullSyncRequest) Reset()
func (*TreeFullSyncRequest) SizeVT ¶ added in v0.9.0
func (m *TreeFullSyncRequest) SizeVT() (n int)
func (*TreeFullSyncRequest) String ¶
func (x *TreeFullSyncRequest) String() string
func (*TreeFullSyncRequest) UnmarshalVT ¶ added in v0.9.0
func (m *TreeFullSyncRequest) UnmarshalVT(dAtA []byte) error
type TreeFullSyncResponse ¶
type TreeFullSyncResponse struct {
Heads []string `protobuf:"bytes,1,rep,name=heads,proto3" json:"heads,omitempty"`
Changes []*RawTreeChangeWithId `protobuf:"bytes,2,rep,name=changes,proto3" json:"changes,omitempty"`
SnapshotPath []string `protobuf:"bytes,3,rep,name=snapshotPath,proto3" json:"snapshotPath,omitempty"`
// contains filtered or unexported fields
}
TreeFullSyncResponse is a message sent as a response for a specific full sync
func (*TreeFullSyncResponse) Descriptor
deprecated
func (*TreeFullSyncResponse) Descriptor() ([]byte, []int)
Deprecated: Use TreeFullSyncResponse.ProtoReflect.Descriptor instead.
func (*TreeFullSyncResponse) GetChanges ¶
func (x *TreeFullSyncResponse) GetChanges() []*RawTreeChangeWithId
func (*TreeFullSyncResponse) GetHeads ¶
func (x *TreeFullSyncResponse) GetHeads() []string
func (*TreeFullSyncResponse) GetSnapshotPath ¶
func (x *TreeFullSyncResponse) GetSnapshotPath() []string
func (*TreeFullSyncResponse) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeFullSyncResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeFullSyncResponse) MarshalToVT ¶ added in v0.9.0
func (m *TreeFullSyncResponse) MarshalToVT(dAtA []byte) (int, error)
func (*TreeFullSyncResponse) MarshalVT ¶ added in v0.9.0
func (m *TreeFullSyncResponse) MarshalVT() (dAtA []byte, err error)
func (*TreeFullSyncResponse) ProtoMessage ¶
func (*TreeFullSyncResponse) ProtoMessage()
func (*TreeFullSyncResponse) ProtoReflect ¶ added in v0.9.0
func (x *TreeFullSyncResponse) ProtoReflect() protoreflect.Message
func (*TreeFullSyncResponse) Reset ¶
func (x *TreeFullSyncResponse) Reset()
func (*TreeFullSyncResponse) SizeVT ¶ added in v0.9.0
func (m *TreeFullSyncResponse) SizeVT() (n int)
func (*TreeFullSyncResponse) String ¶
func (x *TreeFullSyncResponse) String() string
func (*TreeFullSyncResponse) UnmarshalVT ¶ added in v0.9.0
func (m *TreeFullSyncResponse) UnmarshalVT(dAtA []byte) error
type TreeHeadUpdate ¶
type TreeHeadUpdate struct {
Heads []string `protobuf:"bytes,1,rep,name=heads,proto3" json:"heads,omitempty"`
Changes []*RawTreeChangeWithId `protobuf:"bytes,2,rep,name=changes,proto3" json:"changes,omitempty"`
SnapshotPath []string `protobuf:"bytes,3,rep,name=snapshotPath,proto3" json:"snapshotPath,omitempty"`
// contains filtered or unexported fields
}
TreeHeadUpdate is a message sent on document head update
func (*TreeHeadUpdate) Descriptor
deprecated
func (*TreeHeadUpdate) Descriptor() ([]byte, []int)
Deprecated: Use TreeHeadUpdate.ProtoReflect.Descriptor instead.
func (*TreeHeadUpdate) GetChanges ¶
func (x *TreeHeadUpdate) GetChanges() []*RawTreeChangeWithId
func (*TreeHeadUpdate) GetHeads ¶
func (x *TreeHeadUpdate) GetHeads() []string
func (*TreeHeadUpdate) GetSnapshotPath ¶
func (x *TreeHeadUpdate) GetSnapshotPath() []string
func (*TreeHeadUpdate) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeHeadUpdate) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeHeadUpdate) MarshalToVT ¶ added in v0.9.0
func (m *TreeHeadUpdate) MarshalToVT(dAtA []byte) (int, error)
func (*TreeHeadUpdate) MarshalVT ¶ added in v0.9.0
func (m *TreeHeadUpdate) MarshalVT() (dAtA []byte, err error)
func (*TreeHeadUpdate) ProtoMessage ¶
func (*TreeHeadUpdate) ProtoMessage()
func (*TreeHeadUpdate) ProtoReflect ¶ added in v0.9.0
func (x *TreeHeadUpdate) ProtoReflect() protoreflect.Message
func (*TreeHeadUpdate) Reset ¶
func (x *TreeHeadUpdate) Reset()
func (*TreeHeadUpdate) SizeVT ¶ added in v0.9.0
func (m *TreeHeadUpdate) SizeVT() (n int)
func (*TreeHeadUpdate) String ¶
func (x *TreeHeadUpdate) String() string
func (*TreeHeadUpdate) UnmarshalVT ¶ added in v0.9.0
func (m *TreeHeadUpdate) UnmarshalVT(dAtA []byte) error
type TreeSyncContentValue ¶
type TreeSyncContentValue struct {
// Types that are valid to be assigned to Value:
//
// *TreeSyncContentValue_HeadUpdate
// *TreeSyncContentValue_FullSyncRequest
// *TreeSyncContentValue_FullSyncResponse
// *TreeSyncContentValue_ErrorResponse
Value isTreeSyncContentValue_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
TreeSyncContentValue provides different types for tree sync
func (*TreeSyncContentValue) Descriptor
deprecated
func (*TreeSyncContentValue) Descriptor() ([]byte, []int)
Deprecated: Use TreeSyncContentValue.ProtoReflect.Descriptor instead.
func (*TreeSyncContentValue) GetErrorResponse ¶
func (x *TreeSyncContentValue) GetErrorResponse() *TreeErrorResponse
func (*TreeSyncContentValue) GetFullSyncRequest ¶
func (x *TreeSyncContentValue) GetFullSyncRequest() *TreeFullSyncRequest
func (*TreeSyncContentValue) GetFullSyncResponse ¶
func (x *TreeSyncContentValue) GetFullSyncResponse() *TreeFullSyncResponse
func (*TreeSyncContentValue) GetHeadUpdate ¶
func (x *TreeSyncContentValue) GetHeadUpdate() *TreeHeadUpdate
func (*TreeSyncContentValue) GetValue ¶
func (x *TreeSyncContentValue) GetValue() isTreeSyncContentValue_Value
func (*TreeSyncContentValue) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeSyncContentValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeSyncContentValue) MarshalToVT ¶ added in v0.9.0
func (m *TreeSyncContentValue) MarshalToVT(dAtA []byte) (int, error)
func (*TreeSyncContentValue) MarshalVT ¶ added in v0.9.0
func (m *TreeSyncContentValue) MarshalVT() (dAtA []byte, err error)
func (*TreeSyncContentValue) ProtoMessage ¶
func (*TreeSyncContentValue) ProtoMessage()
func (*TreeSyncContentValue) ProtoReflect ¶ added in v0.9.0
func (x *TreeSyncContentValue) ProtoReflect() protoreflect.Message
func (*TreeSyncContentValue) Reset ¶
func (x *TreeSyncContentValue) Reset()
func (*TreeSyncContentValue) SizeVT ¶ added in v0.9.0
func (m *TreeSyncContentValue) SizeVT() (n int)
func (*TreeSyncContentValue) String ¶
func (x *TreeSyncContentValue) String() string
func (*TreeSyncContentValue) UnmarshalVT ¶ added in v0.9.0
func (m *TreeSyncContentValue) UnmarshalVT(dAtA []byte) error
type TreeSyncContentValue_ErrorResponse ¶
type TreeSyncContentValue_ErrorResponse struct {
ErrorResponse *TreeErrorResponse `protobuf:"bytes,4,opt,name=errorResponse,proto3,oneof"`
}
func (*TreeSyncContentValue_ErrorResponse) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_ErrorResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeSyncContentValue_ErrorResponse) MarshalToVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_ErrorResponse) MarshalToVT(dAtA []byte) (int, error)
func (*TreeSyncContentValue_ErrorResponse) SizeVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_ErrorResponse) SizeVT() (n int)
type TreeSyncContentValue_FullSyncRequest ¶
type TreeSyncContentValue_FullSyncRequest struct {
FullSyncRequest *TreeFullSyncRequest `protobuf:"bytes,2,opt,name=fullSyncRequest,proto3,oneof"`
}
func (*TreeSyncContentValue_FullSyncRequest) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_FullSyncRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeSyncContentValue_FullSyncRequest) MarshalToVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_FullSyncRequest) MarshalToVT(dAtA []byte) (int, error)
func (*TreeSyncContentValue_FullSyncRequest) SizeVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_FullSyncRequest) SizeVT() (n int)
type TreeSyncContentValue_FullSyncResponse ¶
type TreeSyncContentValue_FullSyncResponse struct {
FullSyncResponse *TreeFullSyncResponse `protobuf:"bytes,3,opt,name=fullSyncResponse,proto3,oneof"`
}
func (*TreeSyncContentValue_FullSyncResponse) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_FullSyncResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeSyncContentValue_FullSyncResponse) MarshalToVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_FullSyncResponse) MarshalToVT(dAtA []byte) (int, error)
func (*TreeSyncContentValue_FullSyncResponse) SizeVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_FullSyncResponse) SizeVT() (n int)
type TreeSyncContentValue_HeadUpdate ¶
type TreeSyncContentValue_HeadUpdate struct {
HeadUpdate *TreeHeadUpdate `protobuf:"bytes,1,opt,name=headUpdate,proto3,oneof"`
}
func (*TreeSyncContentValue_HeadUpdate) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_HeadUpdate) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeSyncContentValue_HeadUpdate) MarshalToVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_HeadUpdate) MarshalToVT(dAtA []byte) (int, error)
func (*TreeSyncContentValue_HeadUpdate) SizeVT ¶ added in v0.9.0
func (m *TreeSyncContentValue_HeadUpdate) SizeVT() (n int)
type TreeSyncMessage ¶
type TreeSyncMessage struct {
Content *TreeSyncContentValue `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
RootChange *RawTreeChangeWithId `protobuf:"bytes,2,opt,name=rootChange,proto3" json:"rootChange,omitempty"`
// contains filtered or unexported fields
}
func WrapError ¶
func WrapError(err error, rootChange *RawTreeChangeWithId) *TreeSyncMessage
func WrapFullRequest ¶
func WrapFullRequest(request *TreeFullSyncRequest, rootChange *RawTreeChangeWithId) *TreeSyncMessage
func WrapFullResponse ¶
func WrapFullResponse(response *TreeFullSyncResponse, rootChange *RawTreeChangeWithId) *TreeSyncMessage
func WrapHeadUpdate ¶
func WrapHeadUpdate(update *TreeHeadUpdate, rootChange *RawTreeChangeWithId) *TreeSyncMessage
func (*TreeSyncMessage) Descriptor
deprecated
func (*TreeSyncMessage) Descriptor() ([]byte, []int)
Deprecated: Use TreeSyncMessage.ProtoReflect.Descriptor instead.
func (*TreeSyncMessage) GetContent ¶
func (x *TreeSyncMessage) GetContent() *TreeSyncContentValue
func (*TreeSyncMessage) GetRootChange ¶
func (x *TreeSyncMessage) GetRootChange() *RawTreeChangeWithId
func (*TreeSyncMessage) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *TreeSyncMessage) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TreeSyncMessage) MarshalToVT ¶ added in v0.9.0
func (m *TreeSyncMessage) MarshalToVT(dAtA []byte) (int, error)
func (*TreeSyncMessage) MarshalVT ¶ added in v0.9.0
func (m *TreeSyncMessage) MarshalVT() (dAtA []byte, err error)
func (*TreeSyncMessage) ProtoMessage ¶
func (*TreeSyncMessage) ProtoMessage()
func (*TreeSyncMessage) ProtoReflect ¶ added in v0.9.0
func (x *TreeSyncMessage) ProtoReflect() protoreflect.Message
func (*TreeSyncMessage) Reset ¶
func (x *TreeSyncMessage) Reset()
func (*TreeSyncMessage) SizeVT ¶ added in v0.9.0
func (m *TreeSyncMessage) SizeVT() (n int)
func (*TreeSyncMessage) String ¶
func (x *TreeSyncMessage) String() string
func (*TreeSyncMessage) UnmarshalVT ¶ added in v0.9.0
func (m *TreeSyncMessage) UnmarshalVT(dAtA []byte) error