Documentation
¶
Index ¶
- Variables
- type FileAck
- func (*FileAck) Descriptor() ([]byte, []int)deprecated
- func (x *FileAck) GetErr() string
- func (x *FileAck) GetFilePath() string
- func (x *FileAck) GetRecvBytes() int64
- func (x *FileAck) GetTimestamp() int64
- func (*FileAck) ProtoMessage()
- func (x *FileAck) ProtoReflect() protoreflect.Message
- func (x *FileAck) Reset()
- func (x *FileAck) String() string
- type FileChunk
- func (*FileChunk) Descriptor() ([]byte, []int)deprecated
- func (x *FileChunk) GetChunkChecksum() []byte
- func (x *FileChunk) GetChunkNumber() int64
- func (x *FileChunk) GetData() []byte
- func (x *FileChunk) GetFileChecksum() []byte
- func (x *FileChunk) GetIsLastChunk() bool
- func (x *FileChunk) GetSendTime() int64
- func (x *FileChunk) GetSizeInBytes() int64
- func (*FileChunk) ProtoMessage()
- func (x *FileChunk) ProtoReflect() protoreflect.Message
- func (x *FileChunk) Reset()
- func (x *FileChunk) String() string
- type Paths
- func (*Paths) Descriptor() ([]byte, []int)deprecated
- func (x *Paths) GetDstFilePath() string
- func (x *Paths) GetDstNodeID() string
- func (x *Paths) GetSrcFileMode() uint32
- func (x *Paths) GetSrcFileName() string
- func (x *Paths) GetSrcFilePath() string
- func (x *Paths) GetSrcIsDir() bool
- func (x *Paths) GetSrcNodeID() string
- func (*Paths) ProtoMessage()
- func (x *Paths) ProtoReflect() protoreflect.Message
- func (x *Paths) Reset()
- func (x *Paths) String() string
- type Transfer
- func (*Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Transfer) GetFileAck() *FileAck
- func (x *Transfer) GetFileChunk() *FileChunk
- func (x *Transfer) GetID() string
- func (x *Transfer) GetPaths() *Paths
- func (x *Transfer) GetTransferType() int32
- func (*Transfer) ProtoMessage()
- func (x *Transfer) ProtoReflect() protoreflect.Message
- func (x *Transfer) Reset()
- func (x *Transfer) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_mmesh_protobuf_network_v1_mmp_transfer_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FileAck ¶
type FileAck struct { FilePath string `protobuf:"bytes,1,opt,name=filePath,proto3" json:"filePath,omitempty"` RecvBytes int64 `protobuf:"varint,2,opt,name=recvBytes,proto3" json:"recvBytes,omitempty"` // total received bytes Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Err string `protobuf:"bytes,4,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*FileAck) ProtoReflect ¶
func (x *FileAck) ProtoReflect() protoreflect.Message
type FileChunk ¶
type FileChunk struct { SizeInBytes int64 `protobuf:"varint,1,opt,name=sizeInBytes,proto3" json:"sizeInBytes,omitempty"` // len(Data) of sent filechunk SendTime int64 `protobuf:"varint,2,opt,name=sendTime,proto3" json:"sendTime,omitempty"` ChunkChecksum []byte `protobuf:"bytes,3,opt,name=chunkChecksum,proto3" json:"chunkChecksum,omitempty"` // Blake2B checksum of filechunk data Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // 1MB chunk ChunkNumber int64 `protobuf:"varint,5,opt,name=chunkNumber,proto3" json:"chunkNumber,omitempty"` IsLastChunk bool `protobuf:"varint,6,opt,name=isLastChunk,proto3" json:"isLastChunk,omitempty"` FileChecksum []byte `protobuf:"bytes,7,opt,name=fileChecksum,proto3" json:"fileChecksum,omitempty"` // SHA256 checksum of the file // contains filtered or unexported fields }
func (*FileChunk) ProtoReflect ¶
func (x *FileChunk) ProtoReflect() protoreflect.Message
type Paths ¶
type Paths struct { SrcNodeID string `protobuf:"bytes,1,opt,name=srcNodeID,proto3" json:"srcNodeID,omitempty"` SrcFilePath string `protobuf:"bytes,2,opt,name=srcFilePath,proto3" json:"srcFilePath,omitempty"` SrcFileName string `protobuf:"bytes,3,opt,name=srcFileName,proto3" json:"srcFileName,omitempty"` SrcFileMode uint32 `protobuf:"varint,4,opt,name=srcFileMode,proto3" json:"srcFileMode,omitempty"` SrcIsDir bool `protobuf:"varint,5,opt,name=srcIsDir,proto3" json:"srcIsDir,omitempty"` DstNodeID string `protobuf:"bytes,6,opt,name=dstNodeID,proto3" json:"dstNodeID,omitempty"` DstFilePath string `protobuf:"bytes,7,opt,name=dstFilePath,proto3" json:"dstFilePath,omitempty"` // contains filtered or unexported fields }
func (*Paths) ProtoReflect ¶
func (x *Paths) ProtoReflect() protoreflect.Message
type Transfer ¶
type Transfer struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` TransferType int32 `protobuf:"varint,2,opt,name=transferType,proto3" json:"transferType,omitempty"` Paths *Paths `protobuf:"bytes,3,opt,name=paths,proto3" json:"paths,omitempty"` FileChunk *FileChunk `protobuf:"bytes,4,opt,name=fileChunk,proto3" json:"fileChunk,omitempty"` FileAck *FileAck `protobuf:"bytes,5,opt,name=fileAck,proto3" json:"fileAck,omitempty"` // contains filtered or unexported fields }
func (*Transfer) ProtoReflect ¶
func (x *Transfer) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.