UNPKG

tencentcloud-edgeone-migration-nodejs-v2

Version:

tencentcloud cdn config copy to edgeone

26 lines (25 loc) 867 B
import { PluginType, RequisiteBitfield, ServiceRouterPlugin } from "../../../plugins"; import { RoutingRules } from "../../../rules"; import { Service } from "../../../service"; export declare type CanaryArgs = string; export declare class TRPCCanaryRouter implements ServiceRouterPlugin { readonly type = PluginType.ServiceRouter; readonly name: string; readonly requisite: RequisiteBitfield; query<AdditionalArgs = CanaryArgs>(callee: Service, rules?: RoutingRules[], caller?: Service, args?: AdditionalArgs): Generator<{ controller?: undefined; destination?: undefined; } | { controller: { 0: { 0: boolean; }; }; destination: { service: string; metadata: { canary: string; }; }; }, void, unknown>; }