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: implement publisher #23

Merged
merged 8 commits into from
Oct 26, 2023
Merged

feat: implement publisher #23

merged 8 commits into from
Oct 26, 2023

Conversation

dmksnnk
Copy link
Contributor

@dmksnnk dmksnnk commented Oct 23, 2023

Implement Publisher which helps quickly create a publisher to RabbitMQ.

Bigger refactoring to make API prettier 💅

channel/channel_integration_test.go Outdated Show resolved Hide resolved
connection/connection.go Outdated Show resolved Hide resolved
consume/batch/middleware.go Show resolved Hide resolved
publisher/options.go Show resolved Hide resolved
publisher/options.go Show resolved Hide resolved
publisher/options.go Show resolved Hide resolved
- rename process to consume
- move batch middlewares to batch package
- move one middlewares to one package

This makes API more streamlined, batch related things are in batch
package, one-related things are in one package:

  consumer.Start(context.Background(), consume.ByOne(tx, false, one.NewDeliveryLogging(zerolog.New(os.Stdout))))
@howkey666
Copy link

Good job :)

@dmksnnk dmksnnk merged commit 36ce635 into main Oct 26, 2023
4 checks passed
@dmksnnk dmksnnk deleted the feat/publisher branch October 26, 2023 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants