Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AdvancedMapper<I, O>

Mapper that support both creation and updating of services.

Type parameters

  • I

  • O

Hierarchy

  • AdvancedMapper

Index

Properties

Methods

Properties

create

create: Mapper<I, O>

Function used to map an instance the first time it is found. If this method returns a non-null value (after promise resolving) the service will be mapped and made available on the mapped discovery.

Methods

Optional destroy

  • destroy(service: O): void | Promise<void>
  • Destroy a mapped service when it becomes unavailable.

    Parameters

    • service: O

    Returns void | Promise<void>

Optional update

  • update(update: ServiceUpdate<I, O>): null | O | Promise<null | O>
  • Optional function used to update a service. If this method returns a non-null value (after promise resolving) the service will be updated on the mapped discovery.

    Parameters

    Returns null | O | Promise<null | O>

Generated using TypeDoc