Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rabbitmq component #802

Merged
merged 3 commits into from
Jan 25, 2021
Merged

feat: rabbitmq component #802

merged 3 commits into from
Jan 25, 2021

Conversation

stone-jin
Copy link
Member

功能描述:rabbitmq component
使用方法:

import * as rabbitmq from '@midwayjs/rabbitmq';

// 在configuration.ts中,import:rabbitmq这个component

方法调用:

import { RabbitmqProducer } from '@midwayjs/rabbitmq';

// 然后通过inject('rabbitmq:rabbitmqProducer'); 然后内部会暴露getChannel()方法获取channel,getConnection()获取connection

配置:

// 在配置文件中,config.rabbitmq = { url: 'amqp://localhost'},进行配置

@gitpod-io
Copy link

gitpod-io bot commented Jan 13, 2021

@codecov-io
Copy link

codecov-io commented Jan 13, 2021

Codecov Report

Merging #802 (4e562cc) into 2.x (18d0fcd) will decrease coverage by 0.01%.
The diff coverage is 81.81%.

Impacted file tree graph

@@            Coverage Diff             @@
##              2.x     #802      +/-   ##
==========================================
- Coverage   87.10%   87.08%   -0.02%     
==========================================
  Files         154      157       +3     
  Lines        6422     6444      +22     
  Branches     1247     1247              
==========================================
+ Hits         5594     5612      +18     
- Misses        798      802       +4     
  Partials       30       30              
Impacted Files Coverage Δ
packages/rabbitmq/src/service/rabbitmqProducer.ts 71.42% <71.42%> (ø)
packages/rabbitmq/src/config/config.default.ts 100.00% <100.00%> (ø)
packages/rabbitmq/src/configuration.ts 100.00% <100.00%> (ø)
packages/rabbitmq/src/index.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18d0fcd...4e562cc. Read the comment docs.

@czy88840616 czy88840616 merged commit d40197a into 2.x Jan 25, 2021
@czy88840616 czy88840616 deleted the feat/rabbitmq-component branch January 25, 2021 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants