2013-12-02 05:00:28 -05:00
|
|
|
// 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"
|
|
|
|
)
|
|
|
|
|
2014-05-07 05:19:36 -04:00
|
|
|
// MockConfig is a pre-initialized config that can be used for testing purposes.
|
2013-12-02 05:00:28 -05:00
|
|
|
var MockConfig = Config{
|
2014-05-08 06:39:39 -04:00
|
|
|
Addr: ":34000",
|
2013-12-02 05:00:28 -05:00
|
|
|
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,
|
|
|
|
}
|