Documentation
¶
Index ¶
- Variables
- type Addr
- type Table
- func (r *Table) AddAndConnectTracker(ctx context.Context, tracker *Tracker)
- func (r *Table) AddTracker(tracker *Tracker)
- func (r *Table) FindTracker(ctx context.Context, id *big.Int, numRequest int, recvTimeout time.Duration)
- func (r *Table) FindTrackerOnce(ctx context.Context, id []byte, candidates []*Tracker, ...)
- func (r *Table) GetNeighbors(targetIDInt *big.Int, num int, excludeID ...*big.Int) []*Tracker
- func (r *Table) GetTracker(id []byte) *Tracker
- func (r *Table) Init(ctx context.Context, trackers []*Tracker)
- func (r *Table) RemoveTracker(id *big.Int)
- type Tracker
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MaxRedundancy = math.Max(pie.MetaDataRedundancy, pie.FileDataRedundancy)
)
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
Protocol string
// contains filtered or unexported fields
}
func (*Table) AddAndConnectTracker ¶
func (*Table) AddTracker ¶
func (*Table) FindTracker ¶
func (*Table) FindTrackerOnce ¶
func (*Table) GetNeighbors ¶
func (*Table) GetTracker ¶
func (*Table) RemoveTracker ¶
Click to show internal directories.
Click to hide internal directories.