Discover Packages
github.com/webtor-io/rest-api
command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 21, 2025
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
rest-api
REST-API for Webtor can:
Store resource to Webtor (torrent/magnet-uri)
List content of stored resource
Export urls to content for downloading and streaming
Basic usage
% ./rest-api help serve
NAME:
rest-api serve - Serves web server
USAGE:
rest-api serve [command options] [arguments...]
OPTIONS:
--probe-host value probe listening host
--probe-port value probe listening port (default: 8081)
--host value listening host [$WEB_HOST]
--port value http listening port (default: 8080) [$WEB_PORT]
--torrent-store-host value torrent store host [$TORRENT_STORE_SERVICE_HOST, $ TORRENT_STORE_HOST]
--torrent-store-port value torrent store port (default: 50051) [$TORRENT_STORE_SERVICE_PORT, $ TORRENT_STORE_PORT]
--magnet2torrent-host value magnet2torrent host [$MAGNET2TORRENT_SERVICE_HOST, $ MAGNET2TORRENT_HOST]
--magnet2torrent-port value magnet2torrent port (default: 50051) [$MAGNET2TORRENT_SERVICE_PORT, $ MAGNET2TORRENT_PORT]
--export-domain value export domain [$EXPORT_DOMAIN]
--export-ssl export ssl [$EXPORT_SSL]
--node-label-prefix value node label prefix (default: "webtor.io/") [$NODE_LABEL_PREFIX]
--node-iface value node iface (default: "eth0") [$NODE_IFACE]
--prom-addr value prometheus connection address [$PROM_ADDR]
Swagger (OpenAPI)
http://localhost:8080/swagger/index.html
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
Click to show internal directories.
Click to hide internal directories.