cdn

package
v0.1.0-beta-3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheReport      = "cache"
	DownloaderReport = "download"
)
View Source
const RangeHeaderName = "Range"

Variables

This section is empty.

Functions

func NewManager

func NewManager(cfg *config.Config, cacheStore storage.Manager, progressMgr daemon.SeedProgressMgr) (daemon.CDNMgr, error)

NewManager returns a new Manager.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is an implementation of the interface of CDNMgr.

func (*Manager) Delete

func (cm *Manager) Delete(taskID string) error

func (*Manager) TriggerCDN

func (cm *Manager) TriggerCDN(ctx context.Context, task *types.SeedTask) (seedTask *types.SeedTask, err error)

Directories

Path Synopsis
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL