UNPKG

npaw-plugin-nwf

Version:
27 lines (26 loc) 1.01 kB
import Loader from '../Loaders/Loader'; /** * @class * @description This class connect to cdn the cdb balancer api and hepls to get data * @exports BalancerApiBusinessObject */ export default class BalancerApiBusinessObject { options?: any; private _loader; private _manifestMap; private _updateTimer; private _jwtAuthType?; private _jwtToken?; constructor(loader: Loader, jwtAuthType?: string, jwtToken?: string); loadBalancerData(accountCode: string, resource: string, isLive: boolean, updateTime: number, debug: boolean, isDev: boolean, signManifest: boolean, profileName?: string, bucketName?: string, optionsHost?: string, dynamicRules?: string, deviceInfo?: string, authData?: { [cdnName: string]: { [key: string]: any; }; }): Promise<void>; destroy(): void; private createUpdateTimer; private getRouteAndFilename; private shouldPerformDecision; private performHashmapCleanup; private deleteOldestFromManifestMap; }