File tree 6 files changed +22
-21
lines changed
6 files changed +22
-21
lines changed Original file line number Diff line number Diff line change 13
13
14
14
2 . ** 服务层(service layer)** : 服务层划分为两大模块
15
15
16
- 1 . ** 资源管理模块** : 在配置平台中我们把资源类型进行了抽象,目前划分为主机、进程、通用对象三大类 ,支持横向扩展,每一类资源由一类微服务进程来管理。
16
+ 1 . ** 资源管理模块** : 在配置平台中我们把资源类型进行了抽象,提供原子接口服务 ,支持横向扩展,每一类资源由一类微服务进程来管理。
17
17
18
18
19
- 2 . ** 业务场景模块** : 业务场景模块是基于资源管理模块的原子接口对应用场景的封装,基于操作的相关度,目前划分出【admin、event、host、topo、process、datacollection】几个微服务,admin服务
20
- 负责系统的配置刷新、初始化数据写入等操作;event服务负责系统的事件订阅与推送服务;process、topo、host分别负责系统进程、拓扑模型、主机数据的使用场景;
21
- datacollection 服务负责系统快照数据的接收与写入。
19
+ 2 . ** 业务场景模块** : 业务场景模块是基于资源管理模块的原子接口对应用场景的封装,基于操作的相关度,目前划分出【admin、auth、cloud、datacollection、operation、host、process、synchronize、task、topo】几个微服务。
20
+ - admin服务负责系统的配置刷新、初始化数据写入等操作;
21
+ - event服务负责系统的事件订阅与推送服务;
22
+ - process、topo、host、cloud分别负责系统进程、拓扑模型、主机、云数据的使用场景;
23
+ - datacollection 服务负责系统快照数据的接收与写入;
24
+ - operation 服务提供与运营统计相关功能;
25
+ - synchronize 服务提供数据同步功能;
26
+ - auth 服务提供权限相关功能;
27
+ - task 服务提供异步任务管理。
22
28
23
29
24
30
3 . ** 接口层(api)** : 这一层是系统的api服务网关。
Original file line number Diff line number Diff line change 1
1
# 蓝鲸智云配置平台的代码结构
2
2
3
- ![ bk-cmdb.png] ( ../resource/img/code2.jpg )
3
+ ![ bk-cmdb.png] ( ../resource/img/code.png )
4
4
5
5
6
6
## 1. web-server & ui
7
7
8
8
web-server是基于gin打造的web服务器, ui目录基于vue.js构建
9
9
10
+ ## 2. test & tools
10
11
11
-
12
- ## 2. test case & example
13
-
14
- 此目录为系统服务的调用示例
12
+ test 目录为系统服务的调用示例,tools 目录为客户端管理工具和辅助脚本工具
15
13
16
14
17
15
## 3. api_server
@@ -22,24 +20,21 @@ api-server基于开源go-restful 框架构建
22
20
23
21
scene_server基于go-restful框架构建,以下为划分的微服务目录:
24
22
* admin_server
25
- * event_server
23
+ * auth_server
24
+ * cloud_server
26
25
* datacollection
26
+ * event_server
27
27
* host_server
28
+ * operation_server
28
29
* proc_server
30
+ * synchronize_server
31
+ * task_server
29
32
* topo_server
30
- * validator
31
33
32
34
33
35
## 5. source_controller
34
36
35
- source_controller基于go-restful框架构建,以下为划分的微服务目录:
36
-
37
- * hostcontroller
38
- * auditcontroller
39
- * objectcontroller
40
- * proccontroller
41
-
42
-
37
+ source_controller基于go-restful框架构建,提供提供原子接口服务
43
38
44
- ## 6. common & storage
45
- common 目录为项目的公共依赖库, storage是项目对存储接入的封装
39
+ ## 6. common & storage &
40
+ common 目录为项目的公共依赖库, storage是项目对存储接入的封装,thirdpartyclient是项目对第三方客户端接入的封装
You can’t perform that action at this time.
0 commit comments