Documentation
¶
Index ¶
- func ByteCountSI(b int64) string
- func CompressStream(file *os.File, blockSize int) *io.PipeReader
- func CopyGeneratedSDPPrompt(sdp string)
- func DecodeSDP(in string) (*webrtc.SessionDescription, []webrtc.ICECandidateInit, error)
- func DecompressStream(dataReader io.Reader, blockSize int) *io.PipeReader
- func EncodeSDP(sdp *webrtc.SessionDescription, candidates []webrtc.ICECandidateInit) (string, error)
- func FormatFileProposal(fileMDList *controlpb.FileMetadataList) string
- func IsArchiveFile(filePath string) bool
- func NewProgressBar(totalBytes int64, peerInfoStr string, isSender bool) *progressbar.ProgressBar
- func ValidateDestPath(destPath string) (string, error)
- type FileTransfer
- type SwapInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountSI ¶
func CompressStream ¶
func CompressStream(file *os.File, blockSize int) *io.PipeReader
func CopyGeneratedSDPPrompt ¶
func CopyGeneratedSDPPrompt(sdp string)
func DecompressStream ¶
func DecompressStream(dataReader io.Reader, blockSize int) *io.PipeReader
func FormatFileProposal ¶
func FormatFileProposal(fileMDList *controlpb.FileMetadataList) string
func IsArchiveFile ¶
func NewProgressBar ¶
func ValidateDestPath ¶ added in v0.0.8
Types ¶
type FileTransfer ¶
func ParseFiles ¶
func ParseFiles(files []string) ([]FileTransfer, error)
Click to show internal directories.
Click to hide internal directories.