mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-24 19:10:12 +01:00
6aeece49cb
Signed-off-by: getlarge <ed@getlarge.eu>
22 lines
570 B
TypeScript
22 lines
570 B
TypeScript
// Copyright BigchainDB GmbH and BigchainDB contributors
|
|
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
|
// Code is Apache-2.0 and docs are CC-BY-4.0
|
|
|
|
import Request, { Node } from './request';
|
|
import type { RequestConfig } from './baseRequest';
|
|
|
|
export default class Transport {
|
|
private connectionPool: Request[];
|
|
private timeout: number;
|
|
private maxBackoffTime: number;
|
|
|
|
constructor(nodes: Node[], timeout: number);
|
|
|
|
pickConnection(): Request;
|
|
|
|
forwardRequest<O = Record<string, any>>(
|
|
path: string,
|
|
config: RequestConfig
|
|
): Promise<O>;
|
|
}
|