Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsResourcesLacked ¶ added in v2.0.2
Types ¶
type CDNService ¶ added in v2.0.2
type CDNService interface { // RegisterSeedTask registers seed task RegisterSeedTask(ctx context.Context, clientAddr string, registerTask *task.SeedTask) (*task.SeedTask, <-chan *task.PieceInfo, error) // GetSeedPieces returns pieces associated with taskID, which are sorted by pieceNum GetSeedPieces(taskID string) (pieces []*task.PieceInfo, err error) // GetSeedTask returns seed task associated with taskID GetSeedTask(taskID string) (seedTask *task.SeedTask, err error) }
func NewCDNService ¶ added in v2.0.2
Directories ¶
Path | Synopsis |
---|---|
storage/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
cdn
Package cdn is a generated GoMock package.
|
Package cdn is a generated GoMock package. |
progress
Package progress is a generated GoMock package.
|
Package progress is a generated GoMock package. |
task
Package task is a generated GoMock package.
|
Package task is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.