Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1358 from antsystem/feat/define-schedule-peer-info
Browse files Browse the repository at this point in the history
add schedule peer info
  • Loading branch information
lowzj authored May 22, 2020
2 parents 88cb9fa + 0dc8afb commit ef3d3c4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dfget/corev2/basic/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ import (
"github.com/dragonflyoss/Dragonfly/apis/types"
)

// SchedulePeerInfo defines how to get resource from peer info.
type SchedulePeerInfo struct {
// basic peer info
*types.PeerInfo
// Path represents the path to get resource from the peer.
Path string
}

// SchedulerResult defines the result of schedule of range data.
type SchedulePieceDataResult struct {
Off int64
Size int64

// PeerInfos represents the schedule peers which to get the range data.
PeerInfos []*types.PeerInfo
PeerInfos []*SchedulePeerInfo
}

0 comments on commit ef3d3c4

Please sign in to comment.