-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: SevenWaysDP <[email protected]> Co-authored-by: Max Bischof <[email protected]>
- Loading branch information
1 parent
25d11ec
commit 75374c5
Showing
55 changed files
with
2,183 additions
and
2,624 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
import { NestFactory } from '@nestjs/core'; | ||
import { WorkerModule } from '../modules/worker/worker.module.js'; | ||
import { WorkerService } from '../modules/worker/worker.service.js'; | ||
|
||
async function bootstrap(): Promise<void> { | ||
const nestApp = await NestFactory.createApplicationContext(WorkerModule); | ||
|
||
await nestApp.init(); | ||
const workerService = await nestApp.resolve(WorkerService); | ||
|
||
try { | ||
workerService.start(); | ||
} catch (error) { | ||
console.error(error); | ||
workerService.stop(); | ||
process.exit(1); | ||
} | ||
} | ||
bootstrap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './metrics.module.js'; | ||
export * from './metrics.service.js'; | ||
export { MetricsModule } from './metrics.module.js'; | ||
export { MetricsService } from './metrics.service.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './redis.factory.js'; | ||
export * from './redis.module.js'; | ||
export * from './redis.service.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
import { RedisKey } from 'ioredis'; | ||
|
||
interface Message { | ||
key: RedisKey; | ||
m?: RedisKey; | ||
m?: Buffer; | ||
docName?: string; | ||
compact?: string; | ||
compact?: Buffer; | ||
} | ||
|
||
export interface StreamMessageReply { | ||
id: RedisKey; | ||
message: Record<keyof Message, RedisKey>; | ||
message: Message; | ||
} | ||
|
||
export interface StreamMessagesSingleReply { | ||
export interface StreamMessagesReply { | ||
name: string; | ||
messages: StreamMessageReply[] | null; | ||
} | ||
|
||
export type StreamMessagesReply = { | ||
name: string; | ||
messages: StreamMessageReply[] | null; | ||
}[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.