torresmo

package module
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: 8 Imported by: 0

README

Torresmo

GoDoc Go Report Card

Torresmo is a highly experimental and tasty torrent client built with Go.

Features

  • single binary
  • mac app build
  • http server and rest api
  • websocket events and rooms
  • embedded web interface (using esbuild, typescript and preact)
  • graphical interface (mac only for now, via macdriver)

Build

Go binary:

make torresmo

Mac app:

make mac

Usage

$ ./torresmo server -h
Torresmo torrent client and server

Usage:
  torresmo server [flags]

Flags:
  -a, --addr string          HTTP Server address (default ":8000")
  -b, --biggest              Prioritize the biggest file in the torrent (default true)
  -d, --debug                Enable seeding (default true)
  -D, --download-limit int   Download limit
  -g, --gui                  Runs graphical interface (default true)
  -h, --help                 help for server
  -o, --out string           Output directory (default "downloads")
  -s, --seed                 Enable seeding (default true)
  -e, --serve                Serve downloaded files (default true)
  -U, --upload-limit int     Upload limit
  -w, --watch string         Watch torrents in this directory (default "downloads")

Example

Example

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Torresmo

type Torresmo struct {
	HTTPServer    *gohttp.Server
	HTTPHandler   gohttp.Handler
	Publisher     stream.Publisher
	TorrentClient torrent.Client
	Logger        log.Logger
	StaticFiles   fs.FS
}

func New

func New() (*Torresmo, error)

New initializes a Torresmo with some defaults

func (*Torresmo) Shutdown

func (t *Torresmo) Shutdown(ctx context.Context, timeout time.Duration) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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