Docs
API
Classes
GrpcHandler

Class: GrpcHandler

handlers/grpc/src.GrpcHandler

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new GrpcHandler(__namedParameters)

Parameters

NameType
__namedParametersGetMeshSourceOptions<GrpcHandler>

Methods

getCachedDescriptorSets

getCachedDescriptorSets(creds): Promise<RootJsonAndDecodedDescriptorSet[]>

Parameters

NameType
credsChannelCredentials

Returns

Promise<RootJsonAndDecodedDescriptorSet[]>


getCredentials

getCredentials(): Promise<ChannelCredentials>

Returns

Promise<ChannelCredentials>


getMeshSource

getMeshSource(): Promise<{ schema: GraphQLSchema }>

Returns

Promise<{ schema: GraphQLSchema }>

Implementation of

MeshHandler.getMeshSource


getRootPromiseFromDescriptorFilePath

getRootPromiseFromDescriptorFilePath(): Promise<Root>

Returns

Promise<Root>


getRootPromiseFromProtoFilePath

getRootPromiseFromProtoFilePath(): Promise<Root>

Returns

Promise<Root>


getRootPromisesFromReflection

getRootPromisesFromReflection(creds): Promise<Promise<Root>[]>

Parameters

NameType
credsChannelCredentials

Returns

Promise<Promise<Root>[]>


visit

visit(__namedParameters): void

Parameters

NameType
__namedParametersObject
__namedParameters.credsChannelCredentials
__namedParameters.currentPathstring[]
__namedParameters.grpcObjectGrpcObject
__namedParameters.namestring
__namedParameters.nestedAnyNestedObject
__namedParameters.rootJsonINamespace
__namedParameters.rootLoggerLogger

Returns

void


walkToFindTypePath

walkToFindTypePath(rootJson, pathWithName, baseTypePath): string[]

Parameters

NameType
rootJsonINamespace
pathWithNamestring[]
baseTypePathstring[]

Returns

string[]