mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 09:00:47 +00:00
17 lines
668 B
Go
17 lines
668 B
Go
package bt
|
|
|
|
type config struct {
|
|
ListenPort int `json:"listenPort"`
|
|
Trackers []string `json:"trackers"`
|
|
// SeedKeep is always keep seeding after downloading is complete, unless manually stopped.
|
|
SeedKeep bool `json:"seedKeep"`
|
|
// SeedRatio is the ratio of uploaded data to downloaded data to seed.
|
|
SeedRatio float64 `json:"seedRatio"`
|
|
// SeedTime is the time in seconds to seed after downloading is complete.
|
|
SeedTime int64 `json:"seedTime"`
|
|
// DisableDHT and DisablePEX turn off DHT and PEX peer discovery. Like ListenPort,
|
|
// they are read when the shared client is built.
|
|
DisableDHT bool `json:"disableDht"`
|
|
DisablePEX bool `json:"disablePex"`
|
|
}
|