Members
callError
Call error name to code number mapping
Credentials
Credentials factories
getClientChannel
- Source:
- See:
makeGenericClientConstructor
- Source:
- See:
Metadata
- Source:
- See:
propagate
Propagate flag name to number mapping
Server
- Source:
- See:
ServerCredentials
ServerCredentials factories
status
Status name to code number mapping
waitForClientReady
- Source:
- See:
writeFlags
Write flag name to code number mapping
Methods
getGoogleAuthDelegate(credential) → {function}
Get a function that a client can use to update metadata with authentication
information from a Google Auth credential object, which comes from the
google-auth-library.
Parameters:
| Name | Type | Description |
|---|---|---|
credential |
Object | The credential object to use |
Returns:
Metadata updater function
- Type
- function
load(filename, formatopt) → {Object.<string, *>}
Load a gRPC object from a .proto file.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
filename |
string | The file to load | |
format |
string |
<optional> |
The file format to expect. Must be either 'proto' or 'json'. Defaults to 'proto' |
Returns:
The resulting gRPC object
- Type
- Object.<string, *>
loadObject(value) → {Object.<string, *>}
Load a gRPC object from an existing ProtoBuf.Reflect object.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
ProtoBuf.Reflect.Namespace | The ProtoBuf object to load. |
Returns:
The resulting gRPC object
- Type
- Object.<string, *>