Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GrpcUtil

Index

Methods

  • getServiceNames(obj: ReflectionObject, parentName?: string): string[]
  • Iterate through a (resolved) protobufjs reflection object to find services.

    Parameters

    • obj: ReflectionObject
    • parentName: string = ''

    Returns string[]

  • addHeadersToAllRequests(client: any, metadataWithHeaders: Metadata): void
  • Add default headers/metadata to all request methods

    Parameters

    • client: any
    • metadataWithHeaders: Metadata

    Returns void

  • promisifyClient(client: any, suffix?: string): any
  • add async versions of unary request methods, suffixed with the given suffix

    Parameters

    • client: any
    • suffix: string = ''

    Returns any

Constructors

Generated using TypeDoc