构造函数
constructor
new GrpcProtoLoader( protoPath: string | string[], loaderOptions?: VipProtoLoaderOptions,): GrpcProtoLoader 参数
- protoPath: string | string[]
可选loaderOptions: VipProtoLoaderOptions
方法
getClientServiceConstructor
getClientServiceConstructor(servicePath: string): ServiceClientConstructor 返回 ServiceClientConstructor
getGrpcServiceDetail
getGrpcServiceDetail(): GrpcServiceDetail[]
getLoaderOptions
getLoaderOptions(): VipProtoLoaderOptions
getPackageNames
getPackageNames(): string[]
getServerServiceDefinition
getServerServiceDefinition(servicePath: string): ServiceDefinition
getServiceDetail
getServiceDetail(): GrpcServicePath[]
getServiceName
getServiceName(servicePath: string): string
getServicePaths
getServicePaths(): string[]
isProtobufTypeDefinition
isProtobufTypeDefinition( obj: ServiceClientConstructor | GrpcObject | ProtobufTypeDefinition,): obj is ProtobufTypeDefinition 参数
- obj: ServiceClientConstructor | GrpcObject | ProtobufTypeDefinition
返回 obj is ProtobufTypeDefinition
proto文件加载器