magnet

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 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) InfoString

func (m *Magnet) InfoString() string

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