|
1 |
| -pub use crate::gcp_pubsub::{GCPPubSubInputOpts, GCPPubSubOutputOpts}; |
2 |
| -pub use crate::rabbitmq::{RabbitMqInputOpts, RabbitMqOutputOpts}; |
3 |
| -pub use crate::receiver_output::QueueForwarder; |
4 |
| -pub use crate::redis::{RedisInputOpts, RedisOutputOpts}; |
5 |
| -use crate::sender_input::QueueSender; |
6 |
| -pub use crate::sqs::{SqsInputOpts, SqsOutputOpts}; |
7 | 1 | use serde::Deserialize;
|
8 | 2 | use svix_bridge_types::{
|
9 | 3 | ReceiverOutput, SenderInput, SenderOutputOpts, TransformationConfig, TransformerInputFormat,
|
10 | 4 | };
|
11 | 5 |
|
| 6 | +use crate::sender_input::QueueSender; |
| 7 | +pub use crate::{ |
| 8 | + gcp_pubsub::{GCPPubSubInputOpts, GCPPubSubOutputOpts}, |
| 9 | + rabbitmq::{RabbitMqInputOpts, RabbitMqOutputOpts}, |
| 10 | + receiver_output::QueueForwarder, |
| 11 | + redis::{RedisInputOpts, RedisOutputOpts}, |
| 12 | + sqs::{SqsInputOpts, SqsOutputOpts}, |
| 13 | +}; |
| 14 | + |
12 | 15 | #[derive(Deserialize)]
|
13 | 16 | pub struct QueueConsumerConfig {
|
14 | 17 | pub name: String,
|
@@ -85,14 +88,16 @@ pub enum ReceiverOutputOpts {
|
85 | 88 |
|
86 | 89 | #[cfg(test)]
|
87 | 90 | mod tests {
|
88 |
| - use super::into_receiver_output; |
89 |
| - use super::QueueConsumerConfig; |
90 |
| - use crate::config::{ReceiverOutputOpts, SenderInputOpts}; |
91 |
| - use crate::redis::{RedisInputOpts, RedisOutputOpts}; |
92 | 91 | use svix_bridge_types::{
|
93 | 92 | SenderOutputOpts, SvixSenderOutputOpts, TransformationConfig, TransformerInputFormat,
|
94 | 93 | };
|
95 | 94 |
|
| 95 | + use super::{into_receiver_output, QueueConsumerConfig}; |
| 96 | + use crate::{ |
| 97 | + config::{ReceiverOutputOpts, SenderInputOpts}, |
| 98 | + redis::{RedisInputOpts, RedisOutputOpts}, |
| 99 | + }; |
| 100 | + |
96 | 101 | // FIXME: can't support raw payload access for redis because it requires JSON internally.
|
97 | 102 | // Revisit after `omniqueue` adoption.
|
98 | 103 | #[test]
|
|
0 commit comments