Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDiscovery

Interface for discovery services which are used to store and resolve connection parameters to connect to external services.

see

ConnectionParams

see

CredentialParams

Hierarchy

  • IDiscovery

Implemented by

Index

Methods

register

  • register(correlationId: string, key: string, connection: ConnectionParams, callback: function): void
  • Registers connection parameters into the discovery service.

    Parameters

    • correlationId: string

      (optional) transaction id to trace execution through call chain.

    • key: string

      a key to uniquely identify the connection parameters.

    • connection: ConnectionParams
    • callback: function

      callback function that receives a registered connection or error.

    Returns void

resolveAll

  • resolveAll(correlationId: string, key: string, callback: function): void
  • Resolves all connection parameters by their key.

    Parameters

    • correlationId: string

      (optional) transaction id to trace execution through call chain.

    • key: string

      a key to uniquely identify the connections.

    • callback: function

      callback function that receives found connections or error.

    Returns void

resolveOne

  • resolveOne(correlationId: string, key: string, callback: function): void
  • Resolves a single connection parameters by its key.

    Parameters

    • correlationId: string

      (optional) transaction id to trace execution through call chain.

    • key: string

      a key to uniquely identify the connection.

    • callback: function

      callback function that receives found connection or error.

    Returns void

Generated using TypeDoc