An interface that represents a middleware object to be used to register messaging actions that are executed on app shutdown, e.g. PostgreSQL pool shutdown. An example of Mosaic implementation:

import { setupShutdownActions, Logger } from '@axinom/mosaic-service-common';
//...
const shutdownActions = setupShutdownActions(app, logger);

Hierarchy

  • DbShutdownActions

Methods

Methods

  • Parameters

    • action: (() => void | Promise<void>)
        • (): void | Promise<void>
        • Returns void | Promise<void>

    Returns void

Generated using TypeDoc