http

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(cli torrent.Client, logger log.Logger, staticFiles fs.FS, downloadedFiles fs.FS, publisher stream.Publisher, debug bool) http.Handler

NewHandler returns a default handler implemented with gin

Types

type AddTorrentRequest

type AddTorrentRequest struct {
	URI string `json:"uri" binding:"required,uri"`
}

Jump to

Keyboard shortcuts

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