magnet

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package magnet provides support for parsing magnet links. https://raw.githubusercontent.com/cenkalti/rain/master/internal/magnet/magnet.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Magnet

type Magnet struct {
	InfoHash [20]byte
	Name     string
	Trackers [][]string
	Peers    []string
}

Magnet link contains the information to download torrent metadata from network.

func New

func New(s string) (*Magnet, error)

New parses the string and returns new Magnet.

func (*Magnet) String

func (m *Magnet) String() string

Jump to

Keyboard shortcuts

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