Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type FileHandle ¶
type FileHandle struct { Filename string // contains filtered or unexported fields }
func (*FileHandle) Handshake ¶
func (h *FileHandle) Handshake(offset uint32, sha256Checksum []byte) error
func (*FileHandle) Sha256 ¶
func (h *FileHandle) Sha256() ([]byte, error)
type FileManager ¶
type FileManager struct { Network string Server string PrivateKey string ListenUDPPort int ProgressBar func(total int64, desc string) ProgressBar // contains filtered or unexported fields }
func (*FileManager) Add ¶
func (fm *FileManager) Add(file string) error
func (*FileManager) ListenNetwork ¶
func (m *FileManager) ListenNetwork() (net.Listener, error)
func (*FileManager) SharedURLs ¶
func (m *FileManager) SharedURLs() ([]string, error)
type NopProgress ¶
type NopProgress struct { }
func (NopProgress) Add ¶
func (w NopProgress) Add(int) error
type PublicNetwork ¶
func (*PublicNetwork) ListenPacket ¶
func (pn *PublicNetwork) ListenPacket(udpPort int) (net.PacketConn, error)
type Read ¶
type Read func(f *FileHandle) error
Click to show internal directories.
Click to hide internal directories.