metainfo

package
Version: v0.0.0-...-f34eb16 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Length uint64
	MD5Sum string
	Path   []string
}

func (*File) String

func (f *File) String() string

type Info

type Info struct {
	Hash        string
	PieceLength uint64
	Pieces      []byte
	Private     int8
	Length      uint64
	Name        string
}

func (*Info) String

func (i *Info) String() string

type Metainfo

type Metainfo struct {
	Info         Info
	Announce     string
	AnnounceList []string
	CreationDate uint32
	Comment      string
	CreatedBy    string
	Encoding     string
	Name         string
	Length       uint64
	MD5Sum       string
	Files        []File
	HTTPSeeds    []string
}

func NewMetainfo

func NewMetainfo(b []byte) (*Metainfo, error)

func (*Metainfo) String

func (mi *Metainfo) String() string

Source Files

Jump to

Keyboard shortcuts

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