-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
38 lines (31 loc) · 994 Bytes
/
types.ts
File metadata and controls
38 lines (31 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2023-latest the httpland authors. All rights reserved. MIT license.
// This module is browser compatible.
/** Endpoint group API. */
export interface EndpointGroup {
/** Endpoint list. */
readonly endpoints: readonly Endpoint[];
/** Endpoint group’s lifetime
*
* It must be non-negative integer.
*/
readonly max_age: number;
/** Endpoint group name. */
readonly group?: string;
/** Whether to enable this endpoint group for all subdomains of the current origin host. */
readonly include_subdomains?: boolean;
}
/** Endpoint API. */
export interface Endpoint {
/** The location of the endpoint. */
readonly url: string;
/** Number that defines which failover class the endpoint belongs to.
*
* It must be non-negative integer.
*/
readonly priority?: number;
/** Number that defines load balancing for the failover class that the endpoint belongs to.
*
* It must be non-negative integer.
*/
readonly weight?: number;
}