Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

  • ICallable

Implemented by

Index

Properties

Readonly callOptionsFactory

callOptionsFactory: CallOptionsFactory | undefined

Methods

exec

  • exec<T>(service: keyof typeof Services, method: string, params: unknown, options?: grpc.CallOptions): Promise<T>
  • Type parameters

    • T

    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

    • R

    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>

Legend

  • Constructor
  • Method
  • Inherited method

Generated using TypeDoc