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)
Click to show internal directories.
Click to hide internal directories.