All files / src/PgBoss index.ts

100% Statements 8/8
100% Branches 0/0
100% Functions 0/0
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2341x             41x 41x 41x 41x   41x 41x     41x            
import {
  POOL_DELIST_SCHEDULE,
  STAKE_POOL_METADATA_QUEUE,
  STAKE_POOL_METRICS_UPDATE,
  STAKE_POOL_REWARDS
} from '@cardano-sdk/projection-typeorm';
import { PgBossQueue, WorkerHandlerFactory } from './types';
import { stakePoolBatchDelistHandlerFactory } from './stakePoolBatchDelistHandler';
import { stakePoolMetadataHandlerFactory } from './stakePoolMetadataHandler';
import { stakePoolMetricsHandlerFactory } from './stakePoolMetricsHandler';
import { stakePoolRewardsHandlerFactory } from './stakePoolRewardsHandler';
 
export * from './types';
export * from './util';
 
/** Defines the _handler_ for each **pg-boss** queue. */
export const queueHandlers: Record<PgBossQueue, WorkerHandlerFactory> = {
  [POOL_DELIST_SCHEDULE]: stakePoolBatchDelistHandlerFactory,
  [STAKE_POOL_METADATA_QUEUE]: stakePoolMetadataHandlerFactory,
  [STAKE_POOL_METRICS_UPDATE]: stakePoolMetricsHandlerFactory,
  [STAKE_POOL_REWARDS]: stakePoolRewardsHandlerFactory
};