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