49 Commits
Author SHA1 Message Date
fengzero da97600c02 feat(rest): change the api port to 7000 2022-11-03 08:13:52 +00:00
eeff e528d2a70a feat(restful): remove license api 2022-10-28 15:44:33 +08:00
eeff 30e1ad8d5a revert: "feat(restful): add node statistics api"
This reverts commit a583abfa32.
2022-10-17 16:17:35 +08:00
eeff b22120eb07 refactor(restful): expose some utilities for monitor plugin 2022-10-09 18:23:53 +08:00
eeff 4d6999cec0 chore: copy license file for backward compatiblity 2022-09-23 16:13:00 +08:00
fengzero ceeb792d7b chore(rest): log unhandle msg 2022-09-14 06:48:27 +00:00
eeff a583abfa32 feat(restful): add node statistics api 2022-09-08 14:51:21 +08:00
eeff ac85afe960 fix(restful): eliminate stack allocated arrays larger than 64 bytes 2022-08-30 10:32:21 +08:00
fengzeroz 1a6c39d866 Merge pull request #739 from eeff/eeff/dev
Add options `--config_dir` and `--plugin_dir`
2022-08-29 14:17:41 +08:00
eeff 3a3829bc6e feat: pass config_dir and plugin_dir to core and restful plugin 2022-08-26 15:41:02 +08:00
fengzero 4aeff9a6a9 feat(api): get all driver groups 2022-08-26 07:18:56 +00:00
fengzeroz dca1447df4 Merge pull request #701 from eeff/eeff/dev
eKuiper api proxy
2022-08-10 13:54:41 +08:00
eeff 55c80a87bb feat(restful): add proxy handler 2022-08-08 17:07:49 +08:00
fengzero 1fa0e73d35 api: get all nodes state 2022-08-04 10:07:49 +00:00
eeff e19923b131 Revert "feat(restful): enable websocket logging"
This reverts commit 0ed6b39b28.
2022-07-19 18:31:36 +08:00
eeff 0ed6b39b28 feat(restful): enable websocket logging 2022-07-01 17:44:56 +08:00
fengzero 98306b5adb connection: add buf used log 2022-06-24 11:34:22 +00:00
fengzero 1e29e4cb1c remove plugin_info.h & adapter_msg.h 2022-06-17 07:02:32 +00:00
fengzero da7639eb85 connection: add log 2022-06-16 06:32:56 +00:00
fengzero f44a8db699 plugin: remove argument in open() 2022-06-15 06:49:02 +00:00
fengzero 2d38ae5f50 refactor plugin interface config 2022-06-15 06:40:30 +00:00
fengzero 203328dffd copyright 2020-2022 2022-06-10 04:43:06 +00:00
fengzero dc65873e93 async process op msg 2022-06-10 04:43:06 +00:00
fengzero 2446fa8c6d read/write tag 2022-06-10 04:43:05 +00:00
fengzero 4a1a34de43 simplify the plugin type to driver and app 2022-05-30 02:45:17 +00:00
fengzero a7781b63ce log: replace log with zlog 2022-05-28 09:27:52 +00:00
fengzero 5da0480eb4 remove libyaml 2022-05-18 05:30:14 +00:00
lixiumei 73ca00660d Modify jwt authentication, adapt to bc 2022-04-26 02:11:28 +00:00
fengzero 82e061da4d move header to include/neuron 2022-04-07 08:44:04 +00:00
fengzero 119b4b95bb remove options in neuron.yaml that do not require user configuration 2022-03-18 03:05:32 +00:00
fengzero e83c4253ba optimize neuron running directory
neuron
  /config/neuron.yaml
  /config/public.pem
  /config/private.key
  /plugins/xxx.so
  /plugins/schema/xxx.json
2022-03-17 07:20:44 +00:00
fengzero db914268be the basic info(plugin name, type, kind...) of the plugin is read from the dynamic library
add dynamic library search path configuration, install to
/etc/ld.so.conf.d/

dynamic library search path priority:
  1. driver.path in neuron.yaml
  2. os path
2022-01-19 16:56:10 +08:00
fengzero 9e60bd2101 plugin: add validate function in plugin funs
check whether the tag conforms to the relevant driver specifications
2022-01-17 17:19:50 +08:00
lixiumei 253d346452 Add login and logout 2021-11-29 18:16:50 +08:00
fengzero 8893ffbb19 refactor node state and ctl(start/stop)
plugin add start/stop interface

open: init plugin struct
init: initialize other context
start: plugin start workflow
2021-11-24 16:28:05 +08:00
Parker Liu 72d0adf8d9 Add error processing for function dashb_plugin_open 2021-11-19 16:34:28 +08:00
fengzero 6eaa2908bf api: read/write subscribe/unsubscribe 2021-10-15 07:20:23 +00:00
fengzero 60989fb4a3 del context in msg 2021-10-15 03:17:47 +00:00
fengzero e41594f6c1 api server: support CORS 2021-10-15 02:28:39 +00:00
fengzero a84853692a Add parser yaml config module
del unused file
dashboard plugin read config from neuron.yaml
2021-09-11 11:09:50 +08:00
fengzero bb4ebdd75e refactor api server, add datatag api
use different server process api and web
rename tags field
merge json read/write
2021-09-07 16:56:33 +08:00
fengzero d204f8f633 refactor http api server
default response header
static var plugin
http request macro
2021-09-03 14:38:05 +08:00
fengzero 288175996c Add plugin cmd function
add NEU_REQRESP_GET_SELF_NODE_ID cmd
add get_datatags_table func
define neu_addt_str_t
fix compile warning
add magic number and check function in neu_plugin_common_t
2021-09-02 11:22:51 +08:00
Parker Liu 0013a64ba3 Fix issue of mqtt plugin can't get databuf response from driver
* Sometimes add subscription pipe to group config will be executed before
  bind adapter, the wrong pipe will be subscribe in group config. So we
  wait for complete binding adapter and then add subscription pipe.
* Fix issue of failed to build with gcc 10.3.0
2021-08-26 14:26:33 +08:00
Parker Liu 0a82c55dab Implement a static plugin of default dashboard in rest.c 2021-08-18 17:46:57 +08:00
Parker Liu 401228fd36 Add support static plugin in plugin manager 2021-08-18 15:01:36 +08:00
Parker Liu 62b35e1285 Add some request/resposne/command for adapter and plugin
Add structure definition for request/response/command, add get nodes
function and get group configs function in manager.
2021-08-12 19:29:25 +08:00
Parker Liu f981f00908 Change malloc.h to stdlib.h for success build in macOS 2021-08-11 18:20:47 +08:00
fengzero 636afc8e18 rest server 2021-08-11 18:11:40 +08:00