mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 17:19:31 +08:00
19 lines
631 B
Text
19 lines
631 B
Text
import Client = require('./client')
|
|
import Pool = require('./pool')
|
|
import Dispatcher = require('./dispatcher')
|
|
import { URL } from 'url'
|
|
|
|
export = BalancedPool
|
|
|
|
declare class BalancedPool extends Dispatcher {
|
|
constructor(url: string | URL | string[], options?: Pool.Options);
|
|
|
|
addUpstream(upstream: string): BalancedPool;
|
|
removeUpstream(upstream: string): BalancedPool;
|
|
upstreams: Array<string>;
|
|
|
|
/** `true` after `pool.close()` has been called. */
|
|
closed: boolean;
|
|
/** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
|
|
destroyed: boolean;
|
|
}
|