Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MongoDataSource

Hierarchy

  • MongoDataSource

Index

Properties

Static Readonly TYPE

TYPE: string

Static Readonly UNKNOWN

UNKNOWN: string

Unknown type.

Methods

Static createRecord

  • createRecord(name: string, location: {}, metadata: {}): Record
  • Convenient method to create a record for a Mongo data source.

    Parameters

    • name: string
    • location: {}
      • [key: string]: any
    • metadata: {}
      • [key: string]: any

    Returns Record

Static getMongoClient

  • getMongoClient(discovery: ServiceDiscovery, filter: {}): PromiseLike<MongoClient>
  • getMongoClient(discovery: ServiceDiscovery, filter: {}, resultHandler: ((res: AsyncResult<MongoClient>) => void) | Handler<AsyncResult<MongoClient>>): void
  • getMongoClient(discovery: ServiceDiscovery, filter: (arg: Record) => boolean): PromiseLike<MongoClient>
  • getMongoClient(discovery: ServiceDiscovery, filter: (arg: Record) => boolean, resultHandler: ((res: AsyncResult<MongoClient>) => void) | Handler<AsyncResult<MongoClient>>): void
  • getMongoClient(discovery: ServiceDiscovery, filter: {}, consumerConfiguration: {}): PromiseLike<MongoClient>
  • getMongoClient(discovery: ServiceDiscovery, filter: {}, consumerConfiguration: {}, resultHandler: ((res: AsyncResult<MongoClient>) => void) | Handler<AsyncResult<MongoClient>>): void
  • Convenient method that looks for a Mongo datasource source and provides the configured {@link MongoClient}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    Returns PromiseLike<MongoClient>

  • Convenient method that looks for a Mongo datasource source and provides the configured {@link MongoClient}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    • discovery: ServiceDiscovery
    • filter: {}
      • [key: string]: any
    • resultHandler: ((res: AsyncResult<MongoClient>) => void) | Handler<AsyncResult<MongoClient>>

    Returns void

  • Convenient method that looks for a Mongo datasource source and provides the configured {@link MongoClient}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    Returns PromiseLike<MongoClient>

  • Convenient method that looks for a Mongo datasource source and provides the configured {@link MongoClient}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    • discovery: ServiceDiscovery
    • filter: (arg: Record) => boolean
        • Parameters

          Returns boolean

    • resultHandler: ((res: AsyncResult<MongoClient>) => void) | Handler<AsyncResult<MongoClient>>

    Returns void

  • Convenient method that looks for a Mongo datasource source and provides the configured {@link MongoClient}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    • discovery: ServiceDiscovery
    • filter: {}
      • [key: string]: any
    • consumerConfiguration: {}
      • [key: string]: any

    Returns PromiseLike<MongoClient>

  • Convenient method that looks for a Mongo datasource source and provides the configured {@link MongoClient}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    • discovery: ServiceDiscovery
    • filter: {}
      • [key: string]: any
    • consumerConfiguration: {}
      • [key: string]: any
    • resultHandler: ((res: AsyncResult<MongoClient>) => void) | Handler<AsyncResult<MongoClient>>

    Returns void

Generated using TypeDoc