Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
//ManagerTimeout = CC.New(CC.Configure().MaxSize(1024 * 1024).ItemsToPrune(500).Buckets(1024 * 1024 / 64))
//ManagerReadTimeout = CC.New(CC.Configure().MaxSize(1024 * 1024).ItemsToPrune(500).Buckets(1024 * 1024 / 64))
ManagerTimeout, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: 1e7,
MaxCost: 1 << 26,
BufferItems: 64,
})
ManagerReadTimeout, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: 1e7,
MaxCost: 1 << 26,
BufferItems: 64,
})
)
Functions ¶
func Conn2TCPTracker ¶
func NewTCPTracker ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
var DefaultManager *Manager
func (*Manager) PushDownloaded ¶
func (*Manager) PushUploaded ¶
func (*Manager) ResetStatistic ¶
func (m *Manager) ResetStatistic()
Click to show internal directories.
Click to hide internal directories.