CyberEye.KafkaConnector.Lib
3.0.34
dotnet add package CyberEye.KafkaConnector.Lib --version 3.0.34
NuGet\Install-Package CyberEye.KafkaConnector.Lib -Version 3.0.34
<PackageReference Include="CyberEye.KafkaConnector.Lib" Version="3.0.34" />
<PackageVersion Include="CyberEye.KafkaConnector.Lib" Version="3.0.34" />
<PackageReference Include="CyberEye.KafkaConnector.Lib" />
paket add CyberEye.KafkaConnector.Lib --version 3.0.34
#r "nuget: CyberEye.KafkaConnector.Lib, 3.0.34"
#:package CyberEye.KafkaConnector.Lib@3.0.34
#addin nuget:?package=CyberEye.KafkaConnector.Lib&version=3.0.34
#tool nuget:?package=CyberEye.KafkaConnector.Lib&version=3.0.34
CyberEye.KafkaConnector.Lib
Client quản lý Kafka Connect qua REST API và các model xây dựng cấu hình connector. Khác với nhóm CdcClient: package này giao tiếp Kafka Connect, không bật CDC trực tiếp trong database.
Target framework: net8.0.
Cài đặt
dotnet add package CyberEye.KafkaConnector.Lib
Cần cấu hình NuGet feed của dự án và chọn phiên bản tương thích với các package CyberEye khác trong host.
Đăng ký
using Ce.KafkaConnector.Lib.Connect;
using Microsoft.Extensions.DependencyInjection;
builder.Services.AddKafkaConnectHttpClient(builder.Configuration);
builder.Services.AddTransient<IConnectRestApiClient, ConnectRestApiClient>();
Chỉ đăng ký một lần; kiểm tra host đã thực hiện registration tương ứng hay chưa.
{
"Kafka": {
"UseKafka": true,
"KafkaConnect": "http://kafka-connect:8083"
}
}
AddKafkaConnectHttpClient chỉ đăng ký factory khi UseKafka=true. Địa chỉ phải truy cập được từ host.
API và trách nhiệm
Inject IConnectRestApiClient: CreateConnectorAsync, DeleteConnectorAsync, DetailConnectorAsync, GetStatusConnectorAsync. Create nhận ConnectorMetadata và connector name; kiểm tra kiểu trả về và lỗi trước khi tiếp tục.
Các model connector xây dựng cấu hình theo database. Việc cài plugin Debezium, cấp quyền, chuẩn bị CDC và vận hành worker Kafka Connect vẫn thuộc hạ tầng triển khai.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- CyberEye.CommonConnector.Lib (>= 3.0.34)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.34 | 0 | 11/15/2026 |
| 3.0.33 | 0 | 11/15/2026 |
| 3.0.32 | 0 | 11/15/2026 |
| 3.0.31 | 36 | 11/15/2026 |
| 3.0.30 | 45 | 11/15/2026 |
| 3.0.29 | 50 | 11/13/2026 |
| 3.0.28 | 98 | 11/6/2026 |
| 3.0.27 | 123 | 9/17/2026 |
| 3.0.26 | 124 | 9/8/2026 |
| 3.0.25 | 124 | 8/22/2026 |
| 3.0.24 | 130 | 8/10/2026 |
| 3.0.23 | 124 | 8/9/2026 |
| 3.0.22 | 138 | 8/1/2026 |
| 3.0.21 | 126 | 7/28/2026 |
| 3.0.20 | 137 | 7/27/2026 |
| 3.0.19 | 138 | 7/27/2026 |
| 3.0.18 | 127 | 7/17/2026 |
| 3.0.17 | 128 | 7/13/2026 |
| 3.0.16 | 131 | 7/12/2026 |
| 3.0.15 | 129 | 7/10/2026 |