Commit Graph

78 Commits

Author SHA1 Message Date
douxu 49fbd04644 optimize component struct http://server.baseware.net:9000/project/datart/task/47 2025-08-12 17:19:38 +08:00
douxu 426409ed91 feat(redis-string-class): 1. data token parse 2. redis string get 3. redis string set 4. redis string incr 2025-08-08 15:27:51 +08:00
douxu 3e833909d1 feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant
http://server.baseware.net:9000/project/datart/task/22
2025-08-05 15:20:07 +08:00
douxu 1b6211b34b init attribute key struct 2025-07-31 16:52:21 +08:00
douxu 8520790989 merge feature-cgo branch 2025-07-31 10:48:56 +08:00
douxu 65e0c5da92 optimize modelRT routing structure 2025-07-31 10:31:26 +08:00
douxu a70f77464c refactor(gorm-logger): 1. add gorm logger in gorm config 2.use faced func in gorm logger 2025-06-23 16:00:48 +08:00
douxu b7009c351e refactor(errer-package): optimize package name of constant
1.optimize package name of constant
2025-06-13 15:34:49 +08:00
douxu 3fb78b8195 refactor(common/error): optimize error struct
add msg 、cause and occurred field into error struct for logging detail wrong info
2025-06-10 16:29:52 +08:00
douxu f6cee44f84 refactor(handler): use logger package log func replace zap log func 2025-06-06 16:41:52 +08:00
douxu 9aa5b0dcc6 refactor(logger): 1. optimize the logger log module design and add link tracking related designs
2. add logger facade functions to simplify the use of alarm functions
2025-06-05 15:56:40 +08:00
douxu d2196701ec fix(multi-branch-tree-of-topologic): add global tree variable and fix topologic info processing bug 2025-05-20 16:08:17 +08:00
douxu 237c7ecf69 refactor(optimize storage struct): optimize topologic storage struct
1.optimize uuid start and end node of uuid nil node str
        2.optimize topologic query sql of init topologic in memory
2025-05-16 14:24:55 +08:00
douxu daf30766ba refactor(topologic storage struct): refactor topologic storage struct
1.refactor topologic storage struct by multi branch tree
        2.add new func of build multi branch tree
        3.modify sql of query topologic from db
        4.delete page id field from topologic struct
2025-05-13 16:34:25 +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 23110cbba9 refactor(locker params): modify the locker lease time unit
1.modify the locker lease time unit
    2.modify internalLockLeaseTime params unit
    3.modify refreshTime params unit
    4.modify lua script
2025-04-18 15:17:51 +08:00
douxu 310f4c043c refactor(locker params): optimize of redis locker params
1.optimize locker unexport params
    2.optimize locker logging output
    3.optimize locker init process
2025-04-18 14:02:03 +08:00
douxu d27a9bbafa refactor(locker script): optimize of redis locker script
1.optimize locker script of un read lock
fix(locker_refresh): fix bug of locker refresh
    1.fix bug of locker refresh when locker lock success after wait
test(lock_case): add new redis locker case
    1.add new redis locker case
2025-04-11 16:36:54 +08:00
douxu fda43c65d2 optimize the subscription process of redis locker 2025-04-07 16:49:06 +08:00
douxu e4d45016f2 fix bug of redis read and write lock conflict test of rwlocker 2025-04-03 17:22:40 +08:00
douxu b27b999873 add redis read and write lock conflict test of rwlocker 2025-04-02 16:47:51 +08:00
douxu ae064236c7 add redis lock refresh test of rwlocker 2025-04-01 16:20:55 +08:00
douxu 182f8ac634 add redis lock test of rwlocker 2025-03-28 16:48:56 +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 2f1b9d26b8 feat(redis hash): fix bug of redis hash
1.add redis hash init func
2.replace redis model version in go mod
3.add context parameter in redis exec statement

feat(redis set): add new test of RLock and WLock

1.add redis set init func
2.replace redis model version in go mod
3.add context parameter in redis exec statement

fix(logger): add new test of RLock and WLock

1.add compress parameter
2.optimize initLogger function
2025-03-24 16:37:43 +08:00
douxu 25a55b94e8 fix bug of structure pointer func 2025-03-21 16:38:47 +08:00
douxu 3d79993de2 init redis hash and redis set struct with rwlocker 2025-03-21 16:21:33 +08:00
douxu 13809b6a31 add new test of RWLock 2025-03-17 17:19:46 +08:00
douxu 7b282c49f7 fix(lock script): fix bug of lock srcipt
1.fix bug of reset time wrong with ReentrantRLock in RLock script
2.fix bug of write lock failing to lock for the first time
3.fix bug of unlock failed with ReentrantWLock in UnWLock script

test(lock script): add new test of RLock and WLock

1.add refresh test of RLock
2.add new test of ReentrantWLock#
2025-03-13 16:51:50 +08:00
douxu d962462c42 add rlock lock&unlock test and rlock reentrant test 2025-03-12 16:24:28 +08:00
douxu 9381e547b6 add ignore item in the .gitignore file 2025-03-11 15:53:53 +08:00
douxu d404dc4335 fix bug of lock script and refresh script in redission rw lock 2025-03-11 15:35:15 +08:00
douxu 7e3d94db4b optimize structer of redisLock and acquisition statements of lock 2025-03-07 16:16:26 +08:00
douxu 09225fc96f optimize structer of redisRWLock and acquisition statements of write lock 2025-03-06 16:35:36 +08:00
douxu c08f4b91f5 optimize read lock acquisition statements of redisRWLock 2025-03-05 16:42:59 +08:00
douxu b894d61b54 init UnRLockScript 、WLockScript、UnWLockScript、RefreshLockScript script 2025-03-04 16:33:35 +08:00
douxu 2c2c2811a7 init read lock script of distributedlock 2025-02-28 16:00:16 +08:00
douxu 1899546ba4 init code of share memory 2025-02-21 15:27:25 +08:00
douxu 4975c6a5c1 add link for readme file 2025-02-13 14:46:44 +08:00
douxu 6a1c42e22b modify drone pipeline code 2025-02-10 15:21:34 +08:00
douxu 08dc441385 add drone ci pipeline 2025-02-05 16:46:01 +08:00
douxu 58e54afed2 write new code of an alert event management handler 2025-01-23 14:56:01 +08:00
douxu 65f71348d6 design an alert event management structure 2025-01-22 16:38:46 +08:00
douxu 2b967450eb rewrite the real-time data acquisition and processing workflow 2025-01-21 16:35:44 +08:00
douxu 43dece39c1 add handler of dataRT real time data push 2025-01-20 16:20:21 +08:00
douxu 0520e9cece fix bug of test data with update handler 2025-01-13 15:54:40 +08:00
douxu 59574b4b90 fix bug of test data with update handler 2025-01-10 16:58:11 +08:00
douxu d89bf83f8b fix bug of create、delete、update handler 2025-01-10 16:57:29 +08:00
douxu c1691d4da2 fix bug of load data from postgres 2025-01-09 15:56:40 +08:00
douxu 655acf8e1e fix bug of circuit diagram load handler 2025-01-08 16:37:18 +08:00