Go examples: add a sink data producer
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
examples/python/sink-data-producer/producer.pyとそのREADMEの節を読み、続いてexamples/go/common/client.goとexamples/go/getting-started/producer/main.goを調べて、接続とセットアップのパターンを確認してください。指定された環境変数とレコードフィールドを使って、examples/go/sink-data-producer/main.goとREADMEの節を追加してください。READMEのgo runコマンドが新しいサーバーで動作し、不足しているリソースを作成し、要求されたバッチを送信し、go vet ./...が成功すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
The Rust, Java, Node and Python examples include a sink data producer, which fills a topic with JSON records so a sink connector has something to read. The Go examples have none.
Affected area / component
Go examples
Proposed solution
Add examples/go/sink-data-producer/main.go and a "Sink Data Producer" section in examples/go/README.md.
- Use
examples/python/sink-data-producer/producer.pyand its README section as the model. Match the Rust and Python record fields (user_id,user_type,email,source,state,created_at,message) so one connector config works for every SDK. The Node version uses a different set, so do not copy from it. - Use the same environment variables as the Python README:
IGGY_STREAM(defaultqw),IGGY_TOPIC(defaultrecords),IGGY_ADDRESS,IGGY_USERNAMEandIGGY_PASSWORD. examples/go/common/client.goandexamples/go/getting-started/producer/main.goshow connecting, logging in and creating the stream and topic.- The producer creates the stream and topic if they are missing, sends 100 batches of 100 to 499 records, logs the total and exits. Running it again against the same server works, and the stream and topic are kept.
- Put the command in a
go runline in the README, soscripts/run-examples-from-readme.shruns it in CI.
TLS is out of scope.
How to test: start a fresh server (cargo run --bin iggy-server -- --fresh --with-default-root-credentials), run the producer from examples/go with the README command, poll a few messages back to check they are valid JSON, and run go vet ./... in examples/go.
Good first issue
- I think this could be a good first issue for a new contributor
- 主要言語
- Rust
- スター
- 5.2k
- フォーク
- 516
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 145
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/iggy のほかの issue
-
docs good first issue php
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
good first issue javascript test
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue javascript test
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue javascript test
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
good first issue javascript test
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
0xPlaygrounds/rig#3176 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
packaging
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
SalomonAvila/memtop#23 ·
メンテナーはふだん 1 日以内に返信
-
Anthropic provider: 400 on tools.N.custom.name after tool_search adds web.run (name contains a dot)オープンarea:install area:mcp area:state area:tui os:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100