Commit Graph

16 Commits

Author SHA1 Message Date
douxu 1b1f43db7f feat: implement topology analysis async task with BFS connectivity check
- add TopologyAnalysisHandler.Execute() with 5-phase BFS reachability
    check between start/end component UUIDs; support CheckInService flag
    to skip out-of-service nodes during traversal
  - carry task params through RabbitMQ message (TaskQueueMessage.Params)
    instead of re-querying DB in handler; update TaskHandler.Execute
    interface and all handler signatures accordingly
  - fix BuildMultiBranchTree UUIDFrom condition bug; return nodeMap for
    O(1) lookup; add QueryTopologicByStartUUID for directed traversal
  - add QueryBayByUUID/QueryBaysByUUIDs and
    QueryComponentsInServiceByUUIDs (two-column select) to database layer
  - add diagram.FindPath via LCA algorithm for tree path reconstruction
  - move initTracerProvider to middleware.InitTracerProvider; add
    OtelConfig struct to ModelRTConfig for endpoint configuration
  - update topology analysis params to start/end_component_uuid +
    check_in_service; remove dead topology init code
2026-04-24 17:14:46 +08:00
douxu 9e4c35794c implemented task queue publishing using RabbitMQ
Added configuration middleware integration
  Added retry logic for queue publishing
  Added task worker initialization (main.go):

Created initTaskWorker function for task worker configuration
  Added worker startup and shutdown logic
  Added CORS middleware configuration
  Registered config middleware
2026-04-01 17:15:33 +08:00
douxu 35cb969a54 add code of inter-module communication 2026-02-02 16:48:46 +08:00
douxu 5021e7fda1 comment out unused kafka code 2025-12-12 10:23:04 +08:00
douxu 62e897190d optimize code of measurement recommend and logger output 2025-10-15 17:08:32 +08:00
douxu 4ee836c70f add redis search code of query model object 2025-09-24 16:43:11 +08:00
douxu af0cfce78f refactor(component set): add the return value of component query func
1.add the return value of topologic query func
refactor(diagram set): add the return value of topologic query func
    1.add the return value of topologic query func
    2.modify internalLockLeaseTime params unit
    3.modify refreshTime params unit
    4.modify lua script
feat(bay info): init interval information constructor
    1.init interval information constructor
test(sql case): add new pg sql case
    1. add new pg sql case
2025-04-30 16:44:58 +08:00
douxu 1cf6137f9f refactor(redis hash): fix bug of redis hash
1.optimize RedisOption struct
fix(uuid): replace uuid mod dependencies
    1.replace uuid mod dependencies
fix(config): add new redis config
    1.add new redis config
2025-03-25 17:00:09 +08:00
douxu 25a55b94e8 fix bug of structure pointer func 2025-03-21 16:38:47 +08:00
douxu 2c2c2811a7 init read lock script of distributedlock 2025-02-28 16:00:16 +08:00
douxu 43dece39c1 add handler of dataRT real time data push 2025-01-20 16:20:21 +08:00
douxu c3f7ddf210 optimize demo code 2024-12-23 14:47:22 +08:00
douxu efc15c3b2d wirte demo code 2024-12-18 16:25:49 +08:00
douxu 93529c716e add swagger docs and swagger docs web 2024-12-06 16:13:11 +08:00
douxu 65e2969ffb optimize modelRT config load 2024-11-28 11:46:40 +08:00
douxu dd67dd5462 use new pg table struct implement circuit diagram loading function 2024-11-22 16:41:04 +08:00