A wrapper of the Molueculer service to expose the main fetcher service through the broker.

Hierarchy

  • Service
    • FetcherMs

Constructors

Properties

Promise: PromiseConstructorLike
actions: ServiceActions
broker: ServiceBroker
dependencies: string | ServiceDependency | (string | ServiceDependency)[]
fullName: string
logger: LoggerInstance
metadata: GenericObject
name: string
originalSchema: ServiceSchema<ServiceSettingSchema>
schema: ServiceSchema<ServiceSettingSchema>
settings: ServiceSettingSchema
version?: string | number
mainFactory: MainFactory<FetcherMsMain>

Methods

  • Returns void

  • Returns Promise<void>

  • Returns Promise<void>

  • Apply mixins list in schema. Merge the schema with mixins schemas. Returns with the mixed schema

    Parameters

    • schema: ServiceSchema<ServiceSettingSchema>

      Schema containing the mixins to merge

    Returns ServiceSchema<ServiceSettingSchema>

  • Call a local event handler. Useful for unit tests.

    Parameters

    • eventName: string

      The event name

    • Optional params: any

      The event parameters

    • Optional opts: any

      The event options

    Returns any

  • Merge actions property in schema

    Parameters

    • src: GenericObject

      Source schema property

    • target: GenericObject

      Target schema property

    Returns GenericObject

  • Merge dependencies property in schema

    Parameters

    • src: GenericObject

      Source schema property

    • target: GenericObject

      Target schema property

    Returns GenericObject

  • Merge events property in schema

    Parameters

    • src: GenericObject

      Source schema property

    • target: GenericObject

      Target schema property

    Returns GenericObject

  • Merge hooks property in schema

    Parameters

    • src: GenericObject

      Source schema property

    • target: GenericObject

      Target schema property

    Returns GenericObject

  • Merge started, stopped, created event handler properties in schema

    Parameters

    • src: GenericObject

      Source schema property

    • target: GenericObject

      Target schema property

    Returns GenericObject

  • Merge metadata property in schema

    Parameters

    • src: GenericObject

      Source schema property

    • target: GenericObject

      Target schema property

    Returns GenericObject

  • Merge methods property in schema

    Parameters

    • src: GenericObject

      Source schema property

    • target: GenericObject

      Target schema property

    Returns GenericObject

  • Merge settings property in schema

    Parameters

    • src: GenericObject

      Source schema property

    • target: GenericObject

      Target schema property

    Returns GenericObject

  • Merge mixins property in schema

    Parameters

    • src: GenericObject

      Source schema property

    • target: GenericObject

      Target schema property

    Returns GenericObject

  • Merge unknown properties in schema

    Parameters

    • src: GenericObject

      Source schema property

    • target: GenericObject

      Target schema property

    Returns GenericObject

  • Merge two Service schema

    Parameters

    • mixinSchema: Partial<ServiceSchema<ServiceSettingSchema>>

      Mixin schema

    • svcSchema: Partial<ServiceSchema<ServiceSettingSchema>>

      Service schema

    Returns Partial<ServiceSchema<ServiceSettingSchema>>

  • Parameters

    • schema: ServiceSchema<ServiceSettingSchema>

    Returns void

  • Wait for the specified services to become available/registered with this broker.

    Parameters

    • serviceNames: string | string[] | ServiceDependency[]

      The service, or services, we are waiting for.

    • Optional timeout: number

      The total time this call may take. If this time has passed and the service(s) are not available an error will be thrown. (In milliseconds)

    • Optional interval: number

      The time we will wait before once again checking if the service(s) are available (In milliseconds)

    Returns Promise<WaitForServicesResult>

  • Return a versioned full service name.

    Parameters

    • name: string

      The name

    • Optional version: string | number

      The version

    Returns string

Generated using TypeDoc