Skip to content

Commit

Permalink
add Copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
hippalus committed Dec 21, 2024
1 parent 693b9c9 commit 3cc6b0e
Show file tree
Hide file tree
Showing 15 changed files with 270 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/connectors/common/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use crate::connectors::common::types::ConnectorType;
use crate::connectors::common::{BadData, ConnectorError};
use crate::connectors::kafka::config::{KafkaConfig, SourceOffset};
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use serde::{Deserialize, Serialize};
pub mod config;
pub mod processor;
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/common/processor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use async_trait::async_trait;

#[async_trait]
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/common/shutdown.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use tokio::sync::mpsc;
use tokio_util::sync::CancellationToken;
use tracing::{info, warn};
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/common/types/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use serde::{Deserialize, Serialize};
use std::fmt;
use std::fmt::{Display, Formatter};
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/kafka/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use anyhow::bail;
use rdkafka::Offset;
use rustls::pki_types::{CertificateDer, PrivateKeyDer};
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/kafka/consumer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use crate::connectors::common::shutdown::Shutdown;
use crate::connectors::kafka::partition_stream_queue::PartitionStreamReceiver;
use crate::connectors::kafka::state::StreamState;
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/kafka/metrics.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use prometheus::core::{Collector, Desc};
use prometheus::proto::MetricFamily;
use rdkafka::Statistics;
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/kafka/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use crate::connectors::kafka::config::KafkaConfig;
use derive_more::Constructor;
use rdkafka::consumer::{ConsumerContext, Rebalance};
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/kafka/partition_stream_queue.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use crate::connectors::kafka::{ConsumerRecord, TopicPartition};
use std::sync::Arc;
use tokio::sync::{mpsc, Notify};
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/kafka/processor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use crate::connectors::common::processor::Processor;
use crate::connectors::kafka::{ConsumerRecord, StreamConsumer, TopicPartition};
use crate::event::format;
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/kafka/rebalance_listener.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use crate::connectors::common::shutdown::Shutdown;
use crate::connectors::kafka::state::StreamState;
use crate::connectors::kafka::RebalanceEvent;
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/kafka/sink.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use crate::connectors::common::processor::Processor;
use crate::connectors::kafka::consumer::KafkaStreams;
use crate::connectors::kafka::processor::StreamWorker;
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/kafka/state.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use crate::connectors::kafka::partition_stream_queue::PartitionStreamSender;
use crate::connectors::kafka::{TopicPartition, TopicPartitionList};
use std::collections::HashMap;
Expand Down
18 changes: 18 additions & 0 deletions src/connectors/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Parseable Server (C) 2022 - 2024 Parseable, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

use crate::connectors::common::config::ConnectorConfig;
use crate::connectors::common::processor::Processor;
use crate::connectors::common::shutdown::Shutdown;
Expand Down

0 comments on commit 3cc6b0e

Please sign in to comment.