Documentation ¶
Index ¶
- func AddDownloadHandler(libp2phost host.Host, store stores.Store, ...)
- func AddUploadHandler(libp2phost host.Host, store stores.Store, ...)
- func BuildDownloadStreamHandler(store stores.Store, ...) func(network.Stream)
- func BuildUploadStreamHandler(store stores.Store, ...) func(stream network.Stream)
- func WaitForDownloadMessage(stream network.Stream) (bool, *lib.DownloadMessage)
- func WaitForResponse(stream network.Stream) bool
- func WaitForUploadMessage(stream network.Stream) (bool, *lib.UploadMessage)
- func WriteErrorToStream(stream network.Stream, message string, err error) error
- func WriteResponseToStream(stream network.Stream, response bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDownloadHandler ¶
func AddUploadHandler ¶
func WaitForDownloadMessage ¶
func WaitForDownloadMessage(stream network.Stream) (bool, *lib.DownloadMessage)
func WaitForResponse ¶
func WaitForUploadMessage ¶
func WaitForUploadMessage(stream network.Stream) (bool, *lib.UploadMessage)
func WriteErrorToStream ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.