Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IGetter<T, K>

Interface for data processing components that can get data items.

Type parameters

  • T: IIdentifiable<K>

  • K

Hierarchy

  • IGetter

Implemented by

Index

Methods

Methods

getOneById

  • getOneById(correlation_id: string, id: K, callback: function): void
  • Gets a data items by its unique id.

    Parameters

    • correlation_id: string

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

    • id: K

      an id of item to be retrieved.

    • callback: function

      callback function that receives an item or error.

        • (err: any, item: T): void
        • Parameters

          • err: any
          • item: T

          Returns void

    Returns void

Generated using TypeDoc