Adding progress bar, fixing progress code, preparing for splitting files.
This commit is contained in:
13
settings.go
13
settings.go
@@ -1,27 +1,24 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
"github.com/anacrolix/dht"
|
||||
"github.com/anacrolix/torrent"
|
||||
)
|
||||
|
||||
|
||||
type fullClientSettings struct {
|
||||
version int
|
||||
torrent.Config
|
||||
|
||||
tFileUploadFolder string
|
||||
}
|
||||
|
||||
|
||||
func fullClientSettingsNew()(fullClientSettings){
|
||||
func fullClientSettingsNew() fullClientSettings {
|
||||
//Config := fullClientSettings //generate a new struct
|
||||
|
||||
var Config fullClientSettings
|
||||
|
||||
|
||||
Config.version = 1.0
|
||||
Config.DataDir = "downloads" //the full OR relative path of the default download directory for torrents
|
||||
Config.tFileUploadFolder = "uploadedTorrents"
|
||||
|
||||
Config.DHTConfig = dht.ServerConfig{
|
||||
StartingNodes: dht.GlobalBootstrapAddrs,
|
||||
@@ -29,4 +26,4 @@ func fullClientSettingsNew()(fullClientSettings){
|
||||
|
||||
return Config
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user