web

package
v0.0.0-...-04c6e67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2016 License: MIT Imports: 10 Imported by: 0

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

func NewWebRouter() *mux.Router

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL