Documentation ¶ Index ¶ type TorrentFile func New(r io.Reader) (*TorrentFile, error) func (t *TorrentFile) GetPeers(peerId [20]byte, port uint16) ([]peers.Peer, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type TorrentFile ¶ type TorrentFile struct { Announce string Comment string CreationDate int64 InfoHash [20]byte PieceHashes [][20]byte PieceLength int Length int Name string } func New ¶ func New(r io.Reader) (*TorrentFile, error) func (*TorrentFile) GetPeers ¶ func (t *TorrentFile) GetPeers(peerId [20]byte, port uint16) ([]peers.Peer, error) Source Files ¶ View all Source files torrentfile.go Click to show internal directories. Click to hide internal directories.