Started seperating the main.go package into multiple packages

This commit is contained in:
2017-12-17 21:49:32 -05:00
parent c408801447
commit b7c5032c37
3 changed files with 5 additions and 5 deletions

30
settings/settings.go Normal file
View File

@@ -0,0 +1,30 @@
package settings
import (
"github.com/anacrolix/dht"
"github.com/anacrolix/torrent"
)
type fullClientSettings struct {
version int
torrent.Config
tFileUploadFolder string
}
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.Seed = true
Config.DHTConfig = dht.ServerConfig{
StartingNodes: dht.GlobalBootstrapAddrs,
}
return Config
}