Skip to content

Commit

Permalink
Initial pubsub implementation/test
Browse files Browse the repository at this point in the history
  • Loading branch information
magnalite committed Jun 21, 2023
1 parent 7717911 commit 51948a5
Show file tree
Hide file tree
Showing 11 changed files with 2,450 additions and 2,276 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ RUN echo "Adding Node.js PPA" \

RUN apt-get -y update \
&& apt-get -y install ca-certificates \
clang \
cmake \
libssl-dev \
llvm \
nodejs \
protobuf-compiler \
clang \
cmake \
libssl-dev \
llvm \
nodejs \
protobuf-compiler \
&& rm -rf /var/lib/apt/lists/*

# Required by tonic
Expand All @@ -44,8 +44,8 @@ WORKDIR /quickwit

RUN echo "Building workspace with feature(s) '$CARGO_FEATURES' and profile '$CARGO_PROFILE'" \
&& cargo build \
--features $CARGO_FEATURES \
$(test "$CARGO_PROFILE" = "release" && echo "--release") \
--features $CARGO_FEATURES \
$(test "$CARGO_PROFILE" = "release" && echo "--release") \
&& echo "Copying binaries to /quickwit/bin" \
&& mkdir -p /quickwit/bin \
&& find target/$CARGO_PROFILE -maxdepth 1 -perm /a+x -type f -exec mv {} /quickwit/bin \;
Expand All @@ -62,7 +62,7 @@ LABEL org.opencontainers.image.licenses="AGPL-3.0"

RUN apt-get -y update \
&& apt-get -y install ca-certificates \
libssl1.1 \
libssl1.1 \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /quickwit
Expand Down
173 changes: 171 additions & 2 deletions quickwit/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions quickwit/quickwit-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ use serde::Serialize;
use serde_json::Value as JsonValue;
pub use source_config::{
load_source_config_from_user_config, FileSourceParams, KafkaSourceParams, KinesisSourceParams,
PulsarSourceAuth, PulsarSourceParams, RegionOrEndpoint, SourceConfig, SourceInputFormat,
SourceParams, TransformConfig, VecSourceParams, VoidSourceParams, CLI_INGEST_SOURCE_ID,
INGEST_API_SOURCE_ID,
PubSubSourceParams, PulsarSourceAuth, PulsarSourceParams, RegionOrEndpoint, SourceConfig,
SourceInputFormat, SourceParams, TransformConfig, VecSourceParams, VoidSourceParams,
CLI_INGEST_SOURCE_ID, INGEST_API_SOURCE_ID,
};
use tracing::warn;

Expand Down Expand Up @@ -88,6 +88,7 @@ pub use crate::storage_config::{
SourceInputFormat,
SourceParams,
FileSourceParams,
PubSubSourceParams,
KafkaSourceParams,
KinesisSourceParams,
PulsarSourceParams,
Expand Down Expand Up @@ -156,7 +157,9 @@ impl ConfigFormat {
}

pub fn parse<T>(&self, payload: &[u8]) -> anyhow::Result<T>
where T: DeserializeOwned {
where
T: DeserializeOwned,
{
match self {
ConfigFormat::Json => {
let mut json_value: JsonValue =
Expand Down
Loading

0 comments on commit 51948a5

Please sign in to comment.