Type alias IHaproxyConnection
IHaproxyConnection: {
clear(all?) => Promise<void>;
compression(value) => Promise<void>;
disable(backend, server) => Promise<void>;
enable(backend, server) => Promise<void>;
errors(id?) => Promise<void>;
info() => Promise<string>;
maxconn(frontend, max) => Promise<void>;
maxconn(max) => Promise<void>;
pause() => Promise<void>;
ratelimit(value) => Promise<void>;
reload(hard?) => Promise<boolean>;
resume(frontend) => Promise<void>;
running() => Promise<boolean>;
session(id?) => Promise<void>;
softstop() => Promise<boolean>;
start() => Promise<boolean>;
stat(...args) => Promise<Record<string, string>[]>;
stop(all?) => Promise<boolean>;
verify() => Promise<boolean>;
weight(backend, server, weight?) => Promise<void>;
}
Type declaration
-
clear:function
- clear(all?): Promise<void>
-
Parameters
-
Optional
all: boolean
Optional
Returns Promise<void>
-
compression:function
- compression(value): Promise<void>
-
Returns Promise<void>
-
disable:function
- disable(backend, server): Promise<void>
-
Parameters
-
backend: string
-
server: string
Returns Promise<void>
-
enable:function
- enable(backend, server): Promise<void>
-
Parameters
-
backend: string
-
server: string
Returns Promise<void>
-
errors:function
- errors(id?): Promise<void>
-
Parameters
-
Optional
id: string | number
Optional
Returns Promise<void>
-
info:function
- info(): Promise<string>
-
Returns Promise<string>
-
maxconn:function
- maxconn(frontend, max): Promise<void>
-
Parameters
-
frontend: string
-
max: number
Returns Promise<void>
- maxconn(max): Promise<void>
-
Returns Promise<void>
-
pause:function
- pause(): Promise<void>
-
Returns Promise<void>
-
ratelimit:function
- ratelimit(value): Promise<void>
-
Returns Promise<void>
-
reload:function
- reload(hard?): Promise<boolean>
-
Parameters
-
Optional
hard: boolean
Optional
Returns Promise<boolean>
-
resume:function
- resume(frontend): Promise<void>
-
Returns Promise<void>
-
running:function
- running(): Promise<boolean>
-
Returns Promise<boolean>
-
session:function
- session(id?): Promise<void>
-
Parameters
-
Optional
id: string | number
Optional
Returns Promise<void>
-
softstop:function
- softstop(): Promise<boolean>
-
Returns Promise<boolean>
-
start:function
- start(): Promise<boolean>
-
Returns Promise<boolean>
-
stat:function
- stat(...args): Promise<Record<string, string>[]>
-
Parameters
-
Rest
...args: string[]
Rest
Returns Promise<Record<string, string>[]>
-
stop:function
- stop(all?): Promise<boolean>
-
Parameters
-
Optional
all: boolean
Optional
Returns Promise<boolean>
-
verify:function
- verify(): Promise<boolean>
-
Returns Promise<boolean>
-
weight:function
- weight(backend, server, weight?): Promise<void>
-
Parameters
-
backend: string
-
server: string
-
Optional
weight: number
Optional
Returns Promise<void>