Constructor
new GrpcService(options)
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
|
Methods
(private) _applyHooks(context)
Apply hook functions to request context object
- Source:
Parameters:
Name | Type | Description |
---|---|---|
context |
(private) _applyMiddlewares(context)
Cycle through all middleware functions in order, and call it against request context
- Source:
Parameters:
Name | Type | Description |
---|---|---|
context |
descriptor() → {object}
Get service descriptor for provided protobuf schema (Called by GrpcServer during service creation process)
- Source:
Returns:
- Type:
-
object
Service descriptor
implementation() → {object}
Get service implementation for provided protobuf schema (Called by GrpcServer during service creation process)
- Source:
Returns:
- Type:
-
object
Service implementation, which will be provided by user child class