1 | import { LoadBalancingConfig } from './load-balancer';
|
2 | export interface MethodConfigName {
|
3 | service: string;
|
4 | method?: string;
|
5 | }
|
6 | export interface Duration {
|
7 | seconds: number;
|
8 | nanos: number;
|
9 | }
|
10 | export interface MethodConfig {
|
11 | name: MethodConfigName[];
|
12 | waitForReady?: boolean;
|
13 | timeout?: Duration;
|
14 | maxRequestBytes?: number;
|
15 | maxResponseBytes?: number;
|
16 | }
|
17 | export interface ServiceConfig {
|
18 | loadBalancingPolicy?: string;
|
19 | loadBalancingConfig: LoadBalancingConfig[];
|
20 | methodConfig: MethodConfig[];
|
21 | }
|
22 | export interface ServiceConfigCanaryConfig {
|
23 | clientLanguage?: string[];
|
24 | percentage?: number;
|
25 | clientHostname?: string[];
|
26 | serviceConfig: ServiceConfig;
|
27 | }
|
28 | export declare function validateServiceConfig(obj: any): ServiceConfig;
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | export declare function extractAndSelectServiceConfig(txtRecord: string[][], percentage: number): ServiceConfig | null;
|