magnetware

package module
v0.0.0-...-d7eaf78 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 10 Imported by: 0

README

magnetWare

Go middleware which creates magnet links of things you're downloading and places them into a header

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTorrent

func CreateTorrent(config torrent.CreateTorrentConfig) (*metainfo.MetaInfo, error)

CreateTorrent creates a .torrent file.

Types

type Magnet

type Magnet struct {
	*os.File
	Link string
}

type MagnetWare

type MagnetWare struct {
	BaseDir string
	// contains filtered or unexported fields
}

func NewMagnetWare

func NewMagnetWare(bd string) *MagnetWare

func (*MagnetWare) EchoMagnet

func (m *MagnetWare) EchoMagnet() echo.MiddlewareFunc

func (*MagnetWare) Magnet

func (m *MagnetWare) Magnet(handler http.Handler) http.Handler

Jump to

Keyboard shortcuts

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