magnet

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package magnet provides support for parsing magnet links.

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 added in v0.16.0

func (m *Magnet) String() string

Jump to

Keyboard shortcuts

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