Discover Packages
github.com/zaheenadeep/torrgo
internal
metainfo
package
Version:
v0.0.0-...-259e751
Opens a new window with list of versions in this module.
Published: Nov 23, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type FileInfo interface{}
type MIFile struct {
Length int `bencode:"length"`
MD5Sum string `bencode:"md5sum,omitempty"`
Path []string `bencode:"path"`
}
type Metainfo struct {
Info FileInfo
InfoBytes bencode .Bytes `bencode:"info"`
Announce string `bencode:"announce"`
AnnounceList [][]string `bencode:"announce-list,omitempty"`
CreationDate int `bencode:"creation date,omitempty"`
CreatedBy string `bencode:"created by,omitempty"`
Encoding string `bencode:"encoding,omitempty"`
}
type MultiFileInfo struct {
PieceLength int `bencode:"piece length"`
Pieces []byte `bencode:"pieces"`
Private int `bencode:"private,omitempty"`
Name string `bencode:"name"`
Files []MIFile `bencode:"files"`
}
type SingleFileInfo struct {
PieceLength int `bencode:"piece length"`
Pieces []byte `bencode:"pieces"`
Private int `bencode:"private,omitempty"`
Name string `bencode:"name"`
Length int `bencode:"length"`
MD5Sum string `bencode:"md5sum,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.