Properties
Readonly callOptionsFactory
Methods
exec
- exec<T>(service: keyof typeof Services, method: string, params: unknown, options?: grpc.CallOptions): Promise<T>
-
Type parameters
Parameters
-
service: keyof typeof Services
-
method: string
-
params: unknown
-
Optional options: grpc.CallOptions
Returns Promise<T>
markFailed
- markFailed(resource: T, error: Error): void
withConnection
- withConnection<R>(service: keyof typeof Services, fn: (args: { client: Client; metadata: Metadata; resource: T }) => Promise<R> | R): Promise<R>
-
Type parameters
Parameters
-
service: keyof typeof Services
-
fn: (args: { client: Client; metadata: Metadata; resource: T }) => Promise<R> | R
-
- (args: { client: Client; metadata: Metadata; resource: T }): Promise<R> | R
-
Parameters
-
args: { client: Client; metadata: Metadata; resource: T }
-
client: Client
-
metadata: Metadata
-
resource: T
Returns Promise<R> | R
Returns Promise<R>