transfer

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor deprecated

func (*FileAck) Descriptor() ([]byte, []int)

Deprecated: Use FileAck.ProtoReflect.Descriptor instead.

func (*FileAck) GetErr

func (x *FileAck) GetErr() string

func (*FileAck) GetFilePath

func (x *FileAck) GetFilePath() string

func (*FileAck) GetRecvBytes

func (x *FileAck) GetRecvBytes() int64

func (*FileAck) GetTimestamp

func (x *FileAck) GetTimestamp() int64

func (*FileAck) ProtoMessage

func (*FileAck) ProtoMessage()

func (*FileAck) ProtoReflect

func (x *FileAck) ProtoReflect() protoreflect.Message

func (*FileAck) Reset

func (x *FileAck) Reset()

func (*FileAck) String

func (x *FileAck) String() string

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) Descriptor deprecated

func (*FileChunk) Descriptor() ([]byte, []int)

Deprecated: Use FileChunk.ProtoReflect.Descriptor instead.

func (*FileChunk) GetChunkChecksum

func (x *FileChunk) GetChunkChecksum() []byte

func (*FileChunk) GetChunkNumber

func (x *FileChunk) GetChunkNumber() int64

func (*FileChunk) GetData

func (x *FileChunk) GetData() []byte

func (*FileChunk) GetFileChecksum

func (x *FileChunk) GetFileChecksum() []byte

func (*FileChunk) GetIsLastChunk

func (x *FileChunk) GetIsLastChunk() bool

func (*FileChunk) GetSendTime

func (x *FileChunk) GetSendTime() int64

func (*FileChunk) GetSizeInBytes

func (x *FileChunk) GetSizeInBytes() int64

func (*FileChunk) ProtoMessage

func (*FileChunk) ProtoMessage()

func (*FileChunk) ProtoReflect

func (x *FileChunk) ProtoReflect() protoreflect.Message

func (*FileChunk) Reset

func (x *FileChunk) Reset()

func (*FileChunk) String

func (x *FileChunk) String() string

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) Descriptor deprecated

func (*Paths) Descriptor() ([]byte, []int)

Deprecated: Use Paths.ProtoReflect.Descriptor instead.

func (*Paths) GetDstFilePath

func (x *Paths) GetDstFilePath() string

func (*Paths) GetDstNodeID

func (x *Paths) GetDstNodeID() string

func (*Paths) GetSrcFileMode

func (x *Paths) GetSrcFileMode() uint32

func (*Paths) GetSrcFileName

func (x *Paths) GetSrcFileName() string

func (*Paths) GetSrcFilePath

func (x *Paths) GetSrcFilePath() string

func (*Paths) GetSrcIsDir

func (x *Paths) GetSrcIsDir() bool

func (*Paths) GetSrcNodeID

func (x *Paths) GetSrcNodeID() string

func (*Paths) ProtoMessage

func (*Paths) ProtoMessage()

func (*Paths) ProtoReflect

func (x *Paths) ProtoReflect() protoreflect.Message

func (*Paths) Reset

func (x *Paths) Reset()

func (*Paths) String

func (x *Paths) String() string

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) Descriptor deprecated

func (*Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetFileAck

func (x *Transfer) GetFileAck() *FileAck

func (*Transfer) GetFileChunk

func (x *Transfer) GetFileChunk() *FileChunk

func (*Transfer) GetID

func (x *Transfer) GetID() string

func (*Transfer) GetPaths

func (x *Transfer) GetPaths() *Paths

func (*Transfer) GetTransferType

func (x *Transfer) GetTransferType() int32

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

func (x *Transfer) ProtoReflect() protoreflect.Message

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳