Documentation
¶
Index ¶
- type DNSServer
- type EtcdClient
- type Locator
- func (l *Locator) CandidateDownloadInfos(ctx context.Context, cid string) ([]*types.CandidateDownloadInfo, error)
- func (l *Locator) EdgeDownloadInfos(ctx context.Context, cid string) ([]*types.EdgeDownloadInfoList, error)
- func (l *Locator) GetAccessPoints(ctx context.Context, nodeID, areaID string) ([]string, error)
- func (l *Locator) GetUserAccessPoint(ctx context.Context, userIP string) (*api.AccessPoint, error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSServer ¶ added in v0.1.10
type DNSServer struct {
*config.LocatorCfg
api.Locator
}
func NewDNSServer ¶ added in v0.1.10
func NewDNSServer(config *config.LocatorCfg, locator api.Locator) *DNSServer
type EtcdClient ¶
type EtcdClient struct {
// contains filtered or unexported fields
}
func NewEtcdClient ¶
func NewEtcdClient(addresses []string) (*EtcdClient, error)
func (*EtcdClient) GetSchedulerConfigs ¶
func (ec *EtcdClient) GetSchedulerConfigs(areaID string) ([]*types.SchedulerCfg, error)
type Locator ¶
func (*Locator) CandidateDownloadInfos ¶ added in v0.1.10
func (*Locator) EdgeDownloadInfos ¶
func (*Locator) GetAccessPoints ¶
GetAccessPoints get schedulers urls with special areaID, and those schedulers have the node
func (*Locator) GetUserAccessPoint ¶
GetUserAccessPoint get user access point for special user ip
Click to show internal directories.
Click to hide internal directories.