Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoran10 committed Mar 23, 2021
1 parent 07e5706 commit 1fbe9c7
Show file tree
Hide file tree
Showing 5 changed files with 428 additions and 145 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ how this template project organize the files for a connector.

├── conf
├── docs
├── pulsar-io-amqp1_0
│   ├── src
├── src
│   ├── checkstyle
│   ├── license
Expand All @@ -29,7 +31,10 @@ how this template project organize the files for a connector.

- `conf` directory is used for storing examples of config files of this connector.
- `docs` directory is used for keeping the documentation of this connector.
- `src` directory is used for storing the source code of this connector.
- `pulsar-io-amqp1_0`
- `src` directory is used for storing the source code of this connector.
- `tests` integration test
- `src`
- `src/checkstyle`: store the checkstyle configuration files
- `src/license`: store the license header for this project. `mvn license:format` can
be used for formatting the project with the stored license header in this directory.
Expand Down
26 changes: 14 additions & 12 deletions conf/pulsar-io-template.yaml → conf/amqp1_0-sink-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@
# under the License.
#

configs:
# The seed used for creating the random instance used by the connector.
# If it is not set, the connector will use the current time as the seed.
#
# This field is optional.
#
# randomSeed:
tenant: "public"
namespace: "default"
name: "amqp1_0-sink"
inputs:
- "user-op-queue-topic"
archive: "connectors/pulsar-io-amqp1_0.nar"
parallelism: 1

# The max message size of the records generated by this connector
#
# This field is *required*.
#
maxMessageSize: 1024
configs:
protocol: "amqp"
host: "solace"
port: "5672"
username: "guest"
password: "guest"
queue: "user-op-queue-pulsar"
33 changes: 33 additions & 0 deletions conf/amqp1_0-source-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

tenant: "public"
namespace: "default"
name: "amqp1_0-source"
topicName: "user-op-queue-topic"
archive: "connectors/pulsar-io-amqp1_0.nar"
parallelism: 1

configs:
protocol: "amqp"
host: "solace"
port: "5672"
username: "guest"
password: "guest"
queue: "user-op-queue"
Loading

0 comments on commit 1fbe9c7

Please sign in to comment.