aboutsummaryrefslogtreecommitdiff
path: root/torrent/torrent.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-12 06:11:33 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-12 06:11:33 +0200
commit1a197f171413d85b04b2d48853acb594b345dbc5 (patch)
treeb510de6ff48f9f3a76e69f4c62b036a1fa9cef2b /torrent/torrent.go
parent1c73aa4b153812fbc64d98b609375cec617c073e (diff)
rename meta module
Diffstat (limited to 'torrent/torrent.go')
-rw-r--r--torrent/torrent.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/torrent/torrent.go b/torrent/torrent.go
deleted file mode 100644
index 256887f..0000000
--- a/torrent/torrent.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package torrent
-
-import "time"
-
-type File struct {
- Length int `bencode:"length"`
- MD5Sum []byte `bencode:"md5sum,optional"`
- Path []string `bencode:"path"`
-}
-
-type Info struct {
- Length int `bencode:"length"`
- MD5Sum []byte `bencode:"md5sum,optional"`
- Name string `bencode:"name"`
- PieceLength int `bencode:"piece length"`
- Pieces []byte `bencode:"pieces"`
- Files []File `bencode:"files"`
-}
-
-type Torrent struct {
- Announce string `bencode:"announce"`
- AnnounceList []string `bencode:"announce-list,optional"`
- Comment string `bencode:"comment"`
- CreatedBy string `bencode:"created by,optional"`
- CreationDate time.Time `bencode:"creation date"` // time.Time (unix time)
- HTTPSeeds []string `bencode:"httpseeds,optional"` // not in draft
- Info Info `bencode:"info"`
- URLList string `bencode:"url-list,optional"` // not in draft
-}