-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎸 add local MQ to provide an MQ like dev experience
when artemis is not configured an in memory implementation will be used so that AMQP process mode can be used in dev
- Loading branch information
1 parent
fbe0526
commit 056c997
Showing
35 changed files
with
424 additions
and
151 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
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* istanbul ignore file */ | ||
|
||
import { Module } from '@nestjs/common'; | ||
|
||
import { LoggerModule } from '~/logger/logger.module'; | ||
import { ArtemisService } from '~/message/artemis/artemis.service'; | ||
import { MessageService } from '~/message/common/message.service'; | ||
|
||
@Module({ | ||
imports: [LoggerModule], | ||
providers: [{ provide: MessageService, useClass: ArtemisService }], | ||
exports: [MessageService], | ||
}) | ||
export class ArtemisModule {} |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* istanbul ignore file */ | ||
|
||
export type ArtemisConfig = | ||
| { | ||
type: 'artemis'; | ||
port: number; | ||
host: string; | ||
username: string; | ||
password: string; | ||
operationTimeoutInSeconds: number; | ||
transport: string; | ||
configured: true; | ||
} | ||
| { type: 'artemis'; configured: false }; |
Oops, something went wrong.