GrpcServiceParameters
Class: GrpcServiceParameters
Defined in: grpc/src/grpcservice.service.ts:32
Parameters for the gRPC service
Extends
OperationsTransportParameters
Constructors
Constructor
new GrpcServiceParameters():
GrpcServiceParameters
Returns
GrpcServiceParameters
Inherited from
OperationsTransportParameters.constructor
Properties
maxQueuedBytes
maxQueuedBytes:
number
Defined in: grpc/src/grpcservice.service.ts:59
Most bytes of unconsumed messages a client or bidirectional operation may have queued; above it the call fails with RESOURCE_EXHAUSTED
Default
16777216
maxQueuedMessages
maxQueuedMessages:
number
Defined in: grpc/src/grpcservice.service.ts:51
Most unconsumed messages a client or bidirectional operation may have queued; above it the call fails with RESOURCE_EXHAUSTED
Default
1000
operations?
optionaloperations?:string[]
Defined in: core/lib/services/operationstransport.d.ts:26
List of operations to include/exclude Supports wildcards and negation: ["*", "!User.Delete"]
Default
["*"]
Inherited from
OperationsTransportParameters.operations
packageName
packageName:
string
Defined in: grpc/src/grpcservice.service.ts:43
Protobuf package name
Default
"webda"
protoFile
protoFile:
string
Defined in: grpc/src/grpcservice.service.ts:37
Path to the generated .proto file
Default
".webda/app.proto"
type
type:
string
Defined in: core/lib/services/serviceparameters.d.ts:9
Type of the service
Inherited from
OperationsTransportParameters.type
Methods
isIncluded()
isIncluded(
operationId):boolean
Defined in: core/lib/services/operationstransport.d.ts:50
Check if an operation is included by this transport
Parameters
operationId
string
the operation identifier
Returns
boolean
true if the operation is included
Inherited from
OperationsTransportParameters.isIncluded
load()
load(
params?):this
Defined in: grpc/src/grpcservice.service.ts:66
Load and apply default parameter values.
Parameters
params?
any = {}
raw configuration object to load into this parameters instance
Returns
this
this instance with defaults applied
Overrides
OperationsTransportParameters.load
update()
update(
params,delta):this
Defined in: core/lib/application/parameters.d.ts:21
Update parameters and call watchers if a parameter was changed
Parameters
params
any
the service parameters
delta
any
the delta
Returns
this
this for chaining
Inherited from
OperationsTransportParameters.update
with()
with(
callback):this
Defined in: core/lib/application/parameters.d.ts:27
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining
Inherited from
OperationsTransportParameters.with