Module: src/common

This module contains functions that are common to client and server code. None of them should be used directly by gRPC users.
Source:

Members

(static) defaultGrpcOptions

Default options for loading proto files into gRPC
Source:

(static) logger

The logger object for the gRPC module. Defaults to console.
Source:

(static) logVerbosity

The current logging verbosity. 0 corresponds to logging everything
Source:

Methods

(static) log(severity, message)

Log a message if the severity is at least as high as the current verbosity
Parameters:
Name Type Description
severity Number A value of the grpc.logVerbosity map
message String The message to log
Source:

(static) wrapIgnoreNull(funcnullable) → {function}

Wrap a function to pass null-like values through without calling it. If no function is given, just uses the identity;
Parameters:
Name Type Attributes Description
func function <nullable>
The function to wrap
Source:
Returns:
The wrapped function
Type
function