26 lines
538 B
Go
26 lines
538 B
Go
|
// Copyright 2013 The Chihaya Authors. All rights reserved.
|
||
|
// Use of this source code is governed by the BSD 2-Clause license,
|
||
|
// which can be found in the LICENSE file.
|
||
|
|
||
|
package config
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
var MockConfig = Config{
|
||
|
Addr: ":80",
|
||
|
Tracker: DataStore{
|
||
|
Driver: "mock",
|
||
|
},
|
||
|
Backend: DataStore{
|
||
|
Driver: "mock",
|
||
|
},
|
||
|
Private: true,
|
||
|
Freeleech: false,
|
||
|
Announce: Duration{30 * time.Minute},
|
||
|
MinAnnounce: Duration{15 * time.Minute},
|
||
|
ReadTimeout: Duration{20 % time.Second},
|
||
|
DefaultNumWant: 50,
|
||
|
}
|