Getting ready to release 0.3.0, changing to new documentation system
This commit is contained in:
@@ -5,6 +5,8 @@ import (
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
Settings "github.com/deranjer/goTorrent/settings"
|
||||
Storage "github.com/deranjer/goTorrent/storage"
|
||||
)
|
||||
|
||||
//All the message types are first, first the server handling messages from the client
|
||||
@@ -37,6 +39,15 @@ type RSSFeedsNames struct {
|
||||
RSSFeedURL string
|
||||
}
|
||||
|
||||
//SingleRSSFeedMessage contains the torrents/name/etc of a single torrent feed
|
||||
type SingleRSSFeedMessage struct { //TODO had issues with getting this to work with Storage or Engine
|
||||
MessageType string
|
||||
URL string //the URL of the individual RSS feed
|
||||
Name string
|
||||
TotalTorrents int
|
||||
Torrents []Storage.SingleRSSTorrent //name of the torrents
|
||||
}
|
||||
|
||||
//TorrentList struct contains the torrent list that is sent to the client
|
||||
type TorrentList struct { //helps create the JSON structure that react expects to receive
|
||||
MessageType string `json:"MessageType"`
|
||||
@@ -68,6 +79,11 @@ type TorrentFile struct {
|
||||
FilePriority string //Currently "High", "Normal", or "Cancel"
|
||||
}
|
||||
|
||||
type SettingsFile struct {
|
||||
MessageType string
|
||||
Config Settings.FullClientSettings
|
||||
}
|
||||
|
||||
//ClientDB struct contains the struct that is used to compose the torrentlist
|
||||
type ClientDB struct { //TODO maybe separate out the internal bits into another client struct
|
||||
TorrentHashString string //Passed to client for displaying hash and is used to uniquely identify all torrents
|
||||
|
Reference in New Issue
Block a user