fix: kafka bridge schema
This commit is contained in:
parent
f0e03086a6
commit
e45c99bf79
|
@ -219,7 +219,7 @@ emqx_ee_bridge_kafka {
|
|||
socket_nodelay {
|
||||
desc {
|
||||
en: "When set to 'true', TCP buffer sent as soon as possible. "
|
||||
"Otherwise the OS kernel may buffer small TCP packets for a while (40ms by default)."
|
||||
"Otherwise, the OS kernel may buffer small TCP packets for a while (40 ms by default)."
|
||||
zh: "设置 ‘true' 让系统内核立即发送。否则当需要发送当内容很少时,可能会有一定延迟(默认 40 毫秒)。"
|
||||
}
|
||||
label {
|
||||
|
|
|
@ -245,8 +245,21 @@ desc("config") ->
|
|||
?DESC("desc_config");
|
||||
desc(Method) when Method =:= "get"; Method =:= "put"; Method =:= "post" ->
|
||||
["Configuration for Kafka using `", string:to_upper(Method), "` method."];
|
||||
desc(_) ->
|
||||
undefined.
|
||||
desc(Name) ->
|
||||
lists:member(Name, struct_names()) orelse throw({missing_desc, Name}),
|
||||
?DESC(Name).
|
||||
|
||||
struct_names() ->
|
||||
[
|
||||
auth_gssapi_kerberos,
|
||||
auth_username_password,
|
||||
kafka_message,
|
||||
producer_buffer,
|
||||
producer_kafka_opts,
|
||||
producer_mqtt_opts,
|
||||
socket_opts,
|
||||
producer_opts
|
||||
].
|
||||
|
||||
%% -------------------------------------------------------------------------------------------------
|
||||
%% internal
|
||||
|
|
Loading…
Reference in New Issue