Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(i18n): static client ids support #87

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/i18n/lib/enConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
keepalive: 'Keepalive',
retry_interval: 'Message Retry Interval',
max_inflight: 'Max Inflight',
static_clientids: 'Static ClientId Entries',
node: 'EMQX Node',
ids: 'Static Client IDs',
},
cassandra: {
keyspace: 'Keyspace',
Expand Down
4 changes: 4 additions & 0 deletions packages/i18n/lib/enIntegrationDesc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export const enIntegrationDesc: Record<string, Record<string, string>> = {
'Message subscription topics support the use of + and # wildcards. When EMQX is running in cluster mode or the connector is configured with a connection pool, shared subscriptions must be used to avoid message duplication.',
payload:
"For example: ${'{'}payload{'}'}, ${'{'}clientid{'}'}, ${'{'}topic{'}'} , ${'{'}username{'}'}, etc. Use fields according to the action requirements of your business and forwards the message as it is if it is empty.Supports reading data using ${'{'}field{'}'} syntax.",
static_clientids:
'Entries mapping EMQX node names to static client IDs. If any entries are defined, then only EMQX nodes matching those entries will start MQTT clients with the corresponding clientids.',
node: 'EMQX node name, e.g.: <code>[email protected]</code>.',
ids: 'Array of static client IDs assigned to this node.',
},
http: {
url: "The URL of the HTTP Connector.<br/>Template with variables is allowed in the path, but variables cannot be used in the host or port part.<br/>For example, `http://localhost:9901/${'{'}topic{'}'}` is allowed, but`http://${'{'}host{'}'}:9901/message` or `http://localhost:${'{'}port{'}'}/message`is not allowed.",
Expand Down
3 changes: 3 additions & 0 deletions packages/i18n/lib/zhConnectorsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
keepalive: 'Keepalive',
retry_interval: '消息重发间隔',
max_inflight: '飞行窗口',
static_clientids: '静态客户端 ID 映射表',
node: '节点名称',
ids: '客户端 ID 列表',
},
cassandra: {
keyspace: 'Keyspace',
Expand Down
4 changes: 4 additions & 0 deletions packages/i18n/lib/zhIntegrationDesc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export const zhIntegrationDesc: Record<string, Record<string, string>> = {
'消息订阅主题,支持使用 + 和 # 通配符。当 EMQX 运行在集群模式下或连接器配置了连接池时,为了避免消息重复,必须使用共享订阅。',
payload:
"例如:${'{'}payload{'}'}, ${'{'}clientid{'}'}, ${'{'}topic{'}'}, ${'{'}username{'}'} 等。请根据使用动作的业务需求来选择字段,置空则原样转发消息。支持使用 ${'{'}field{'}'} 语法读取数据。",
static_clientids:
'配置 EMQX 节点与静态客户端 ID 的对应关系。当配置了映射关系后,只有在映射中指定的 EMQX 节点才会创建对应的 MQTT 客户端连接。',
node: 'EMQX 的节点名称,例如:<code>[email protected]</code>',
ids: '指定给该节点的静态客户端 ID 列表',
},
http: {
url: "HTTP 连接器的 URL。<br/>路径中支持占位符,但在主机或端口部分中不能使用占位符。<br/>例如,`http://localhost:9901/${'{'}topic{'}'}` 是允许的,但是 `http://${'{'}host{'}'}:9901/message` 或 `http://localhost:${'{'}port{'}'}/message `不允许。",
Expand Down
Loading