Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatisticInfo ¶
type TaskStatistic ¶
type TaskStatistic struct { StartTime time.Time EndTime time.Time PeerCount int32 FinishedCount int32 CostList []int32 // contains filtered or unexported fields }
func (*TaskStatistic) AddPeerTaskDown ¶
func (t *TaskStatistic) AddPeerTaskDown(cost int32)
func (*TaskStatistic) AddPeerTaskStart ¶
func (t *TaskStatistic) AddPeerTaskStart()
func (*TaskStatistic) GetStatistic ¶
func (t *TaskStatistic) GetStatistic() (info *StatisticInfo)
func (*TaskStatistic) SetEndTime ¶
func (t *TaskStatistic) SetEndTime(end time.Time)
func (*TaskStatistic) SetStartTime ¶
func (t *TaskStatistic) SetStartTime(start time.Time)
Click to show internal directories.
Click to hide internal directories.