cdn

package
v2.0.0-alpha-2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCDNRegisterFail = errors.New("cdn task register failed")

	ErrCDNDownloadFail = errors.New("cdn task download failed")

	ErrCDNUnknown = errors.New("cdn obtain seed encounter unknown err")

	ErrCDNInvokeFail = errors.New("invoke cdn interface failed")

	ErrInitCDNPeerFail = errors.New("init cdn peer failed")
)

Functions

func NewManager

func NewManager(cdnClient RefreshableCDNClient, peerManager supervisor.PeerMgr, hostManager supervisor.HostMgr) (supervisor.CDNMgr, error)

Types

type RefreshableCDNClient

type RefreshableCDNClient interface {
	cdnclient.CdnClient
	config.Observer
	GetCDNHost(hostID string) (*supervisor.PeerHost, bool)
}

func NewRefreshableCDNClient

func NewRefreshableCDNClient(dynConfig config.DynconfigInterface, opts []grpc.DialOption) (RefreshableCDNClient, error)

Jump to

Keyboard shortcuts

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