6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
/// <reference types="node" />
|
|
import { SrvRecord } from "dns";
|
|
export declare type NodeKey = string;
|
|
export declare type NodeRole = "master" | "slave" | "all";
|
|
export interface RedisOptions {
|
|
port: number;
|
|
host: string;
|
|
username?: string | undefined;
|
|
password?: string | undefined;
|
|
[key: string]: any;
|
|
}
|
|
export interface SrvRecordsGroup {
|
|
totalWeight: number;
|
|
records: SrvRecord[];
|
|
}
|
|
export interface GroupedSrvRecords {
|
|
[key: number]: SrvRecordsGroup;
|
|
}
|
|
export declare function getNodeKey(node: RedisOptions): NodeKey;
|
|
export declare function nodeKeyToRedisOptions(nodeKey: NodeKey): RedisOptions;
|
|
export declare function normalizeNodeOptions(nodes: Array<string | number | object>): RedisOptions[];
|
|
export declare function getUniqueHostnamesFromOptions(nodes: RedisOptions[]): string[];
|
|
export declare function groupSrvRecords(records: SrvRecord[]): GroupedSrvRecords;
|
|
export declare function weightSrvRecords(recordsGroup: SrvRecordsGroup): SrvRecord;
|
|
export declare function getConnectionName(component: any, nodeConnectionName: any): string;
|