package
2.0.0-rc.2+incompatible
Repository: https://github.com/pushrax/chihaya.git
Documentation: pkg.go.dev
# Packages
Package bencode implements bencoding of data as defined in BEP 3 using type assertion over reflection for performance.
# Functions
NewFrontend creates a new instance of an HTTP Frontend that asynchronously serves requests.
ParseAnnounce parses an bittorrent.AnnounceRequest from an http.Request.
ParseScrape parses an bittorrent.ScrapeRequest from an http.Request.
WriteAnnounceResponse communicates the results of an Announce to a BitTorrent client over HTTP.
WriteError communicates an error to a BitTorrent client over HTTP.
WriteScrapeResponse communicates the results of a Scrape to a BitTorrent client over HTTP.
# Variables
ErrInvalidIP indicates an invalid IP.