21 lines
468 B
TypeScript
21 lines
468 B
TypeScript
/**
|
|
* Connection endpoint of a database cluster or instance
|
|
*
|
|
* Consists of a combination of hostname and port.
|
|
*/
|
|
export declare class Endpoint {
|
|
/**
|
|
* The hostname of the endpoint
|
|
*/
|
|
readonly hostname: string;
|
|
/**
|
|
* The port of the endpoint
|
|
*/
|
|
readonly port: number;
|
|
constructor(address: string, port: number);
|
|
/**
|
|
* The combination of "HOSTNAME:PORT" for this endpoint
|
|
*/
|
|
get socketAddress(): string;
|
|
}
|