api

package
v0.0.0-...-e0422d1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package api has the public API exposed by the server and consumed by the tracker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTorrentHandler

func GenerateTorrentHandler(w http.ResponseWriter, r *http.Request)

GenerateTorrentHandler takes a user ID and a torrent ID and returns a personalized torrent descriptor.

Optionally a magnet link can be requested, if not set a torrent file will be returned.

func PingHandler

func PingHandler(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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