sample.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "about": {
  3. "author": {
  4. "name": "EMQ",
  5. "email": "contact@emqx.io",
  6. "company": "EMQ Technologies Co., Ltd",
  7. "website": "https://www.emqx.io"
  8. },
  9. "helpUrl": {
  10. "en_US": "https://github.com/emqx/kuiper/blob/master/docs/en_US/plugins/functions/functions.md",
  11. "zh_CN": "https://github.com/emqx/kuiper/blob/master/docs/zh_CN/plugins/functions/functions.md"
  12. },
  13. "description": {
  14. "en_US": "Sample external services for test only",
  15. "zh_CN": "示例外部函数配置,仅供测试"
  16. }
  17. },
  18. "interfaces": {
  19. "tsrpc": {
  20. "address": "tcp://localhost:50051",
  21. "protocol": "grpc",
  22. "schemaType": "protobuf",
  23. "schemaFile": "hw.proto",
  24. "functions": [
  25. {
  26. "name": "helloFromGrpc",
  27. "serviceName": "SayHello"
  28. },
  29. {
  30. "name": "ComputeFromGrpc",
  31. "serviceName": "Compute"
  32. },
  33. {
  34. "name": "objectDetectFromGrpc",
  35. "serviceName": "object_detection"
  36. },
  37. {
  38. "name": "getFeatureFromGrpc",
  39. "serviceName": "get_feature"
  40. },
  41. {
  42. "name": "getStatusFromGrpc",
  43. "serviceName": "getStatus"
  44. }
  45. ]
  46. },
  47. "tsrest": {
  48. "address": "http://localhost:51234",
  49. "protocol": "rest",
  50. "options": {
  51. "insecureSkipVerify": true,
  52. "headers": {
  53. "Accept-Charset": "utf-8"
  54. }
  55. },
  56. "schemaType": "protobuf",
  57. "schemaFile": "hw.proto",
  58. "functions": [
  59. {
  60. "name": "helloFromRest",
  61. "serviceName": "SayHello"
  62. },
  63. {
  64. "name": "ComputeFromRest",
  65. "serviceName": "Compute"
  66. },
  67. {
  68. "name": "objectDetectFromRest",
  69. "serviceName": "object_detection"
  70. },
  71. {
  72. "name": "getFeatureFromRest",
  73. "serviceName": "get_feature"
  74. },
  75. {
  76. "name": "getStatusFromRest",
  77. "serviceName": "getStatus"
  78. }
  79. ]
  80. },
  81. "tsmsgpack": {
  82. "address": "tcp://localhost:50000",
  83. "protocol": "msgpack-rpc",
  84. "schemaType": "protobuf",
  85. "schemaFile": "hw.proto",
  86. "functions": [
  87. {
  88. "name": "helloFromMsgpack",
  89. "serviceName": "SayHello"
  90. },
  91. {
  92. "name": "ComputeFromMsgpack",
  93. "serviceName": "Compute"
  94. },
  95. {
  96. "name": "objectDetectFromMsgpack",
  97. "serviceName": "object_detection"
  98. },
  99. {
  100. "name": "getFeatureFromMsgpack",
  101. "serviceName": "get_feature"
  102. },
  103. {
  104. "name": "getStatusFromMsgpack",
  105. "serviceName": "getStatus"
  106. }
  107. ]
  108. }
  109. }
  110. }