Documentation ¶
Overview ¶
Package api implements a RESTful HTTP JSON API server for a BitTorrent tracker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseHandler ¶
type ResponseHandler func(http.ResponseWriter, *http.Request, httprouter.Params) (int, error)
ResponseHandler is an HTTP handler that returns a status code.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents an API server for a torrent tracker.
Click to show internal directories.
Click to hide internal directories.