Documentation
¶
Index ¶
- type EtcdClient
- type Locator
- 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 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) 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.