Interface RoutesType

Hierarchy

  • RoutesType

Properties

handler: any

Handler

Description

class instance to be called when a message is received

Example

class MyHandler {
async handle(message: any) {
// message processing logic
return true;
}
}
const handler = MyHandler;

Memberof

RoutesType

See

BullMQHandler

queueName: string

Queue Name

Description

name of the queue to be used

Example

const queueName = 'my-queue';

Memberof

RoutesType

See

BullMQRouter

routeType: any

Route Type

Description

class instance of the route type

Example

import { BullMQRouter } from 'evolutty';
const routeType = BullMQRouter;

Memberof

RoutesType

See

routeParams?: object

Route Params

Description

params to be passed to the route

Example

const routeParams = {
abc: '123'
};

Memberof

RoutesType

See