torrent

package
v0.0.0-...-22e36b4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BitTorrent = UrnType("btih")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MagnetLink struct {
	UrnType        UrnType
	UrnHash        []byte
	TrackerAddress string
}

func ParseMagnet

func ParseMagnet(s string) (MagnetLink, error)

func (*MagnetLink) HashStr

func (m *MagnetLink) HashStr() (string, error)

func (*MagnetLink) String

func (m *MagnetLink) String() string

type Torrent

type Torrent struct {
	Title           string
	Body            template.HTML
	Btih            []byte
	PublicationTime time.Time
	Size            uint64
}

func (*Torrent) BtihHex

func (t *Torrent) BtihHex() string

func (*Torrent) HumanSize

func (t *Torrent) HumanSize() template.HTML

func (*Torrent) HumanTime

func (t *Torrent) HumanTime() template.HTML

type UrnType

type UrnType string

Jump to

Keyboard shortcuts

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