Started seperating the go files into seperate packages for cleaner code organization

This commit is contained in:
2017-12-17 23:22:04 -05:00
parent b7c5032c37
commit 2e1eb8e4e1
5 changed files with 123 additions and 155 deletions

View File

@@ -5,20 +5,20 @@ import (
"github.com/anacrolix/torrent"
)
type fullClientSettings struct {
version int
type FullClientSettings struct {
Version int
torrent.Config
tFileUploadFolder string
TFileUploadFolder string
}
func fullClientSettingsNew() fullClientSettings {
func FullClientSettingsNew() FullClientSettings {
//Config := fullClientSettings //generate a new struct
var Config fullClientSettings
var Config FullClientSettings
Config.version = 1.0
Config.Version = 1.0
Config.DataDir = "downloads" //the full OR relative path of the default download directory for torrents
Config.tFileUploadFolder = "uploadedTorrents"
Config.TFileUploadFolder = "uploadedTorrents"
Config.Seed = true
Config.DHTConfig = dht.ServerConfig{