Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

event-plugin: Replace source enum with metadata field in events plugin

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust
領域
backend

調査の方向性

まず、必須の環境フィールド source-kind がどのように設定され、発行されるイベントに追加されるかを追跡します。既存の環境と設定ファイルの処理を比較し、そのフローをイベントの発行を維持したまま meta のサポートに置き換えます。メタデータをサポートされている設定経路から指定でき、source-kind が不要になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Problem

Right now we have a required env var field source-kind that is related to the LSP architecture. This field is added to an every event emitted and helps to distinguish between different node types within LSP architecture.

Solution

Since we want the plugin to be more generic, we need to get rid from source-kind, however still have an ability to add additional information to an event. Therefore, we'll benefit from a new field called 'meta':

  • meta should be set via env variables. We can go in both ways of providing meta data:
    • env variables. We can define an environment variable which would receive metadata as a key-value string. e.g. this could be in JSON format, something like EVENT_PLUGIN_META='{"source_kind": "gateway"}';
    • config file. We can have a config file (e.g. .toml) which would contain an information. That's might suit us well since we already have a config file;
    • apply both variants;
  • the flow should be the same as it was introduced for source-kind.
主要言語
Rust
スター
3
フォーク
0
平均マージ
1日 11時間
マージ済み PR(30日)
2

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Blockstream/cln-plugins のほかの issue

Blockstream/cln-plugins の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。