Documentation ¶
Index ¶
Constants ¶
View Source
const ( VersionRoute = "api.version" SearchRoute = "api.search" ListTorrentRoute = "api.torrent.list" )
Variables ¶
This section is empty.
Functions ¶
func ListTorrentHandler ¶
func ListTorrentHandler(w http.ResponseWriter, r *http.Request)
func NewWebRouter ¶
NewWebRouter returns a router with all the Web routes.
func SearchHandler ¶
func SearchHandler(w http.ResponseWriter, r *http.Request)
func VersionHandler ¶
func VersionHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type SearchParam ¶
type SearchParam struct {
Q string
}
Click to show internal directories.
Click to hide internal directories.