Commit Graph

21 Commits

Author SHA1 Message Date
Muyao CHEN
1fb84a3ff4 feat: implement session delete using redis 2024-10-15 10:14:40 +02:00
Muyao CHEN
9290bcf88c fix: make create session works 2024-10-13 21:55:26 +02:00
Muyao CHEN
ca2985abb4 feat: add session create 2024-10-13 21:10:33 +02:00
Muyao CHEN
798b9a7695 feat: Add jwt token pkg 2024-10-13 13:36:22 +02:00
Muyao CHEN
71926b2197 feat: Use gin default validator
All checks were successful
Build and test / Build (push) Successful in 2m9s
2024-10-12 23:30:36 +02:00
Muyao CHEN
ce3076047a feat: add t.Helper to request helper 2024-10-12 17:09:03 +02:00
Muyao CHEN
9b6282a101 feat: make the request test helper public 2024-10-12 17:07:24 +02:00
Muyao CHEN
a3c2ade9fb feat: create session. (also print the x-rid into the log) 2024-10-11 23:24:29 +02:00
Muyao CHEN
344485d082 fix: make user signup work for the minimum
A lot of work is still to be done ...
2024-10-06 18:29:10 +02:00
Muyao CHEN
28bc869c64 feat: Add regitry and adapter level code for user/admin 2024-10-05 16:41:49 +02:00
Muyao CHEN
4794137d42 feat:add context interface, and change core.writeresponse function to use it 2024-10-04 23:40:45 +02:00
Muyao CHEN
ab26e9d585 fix: set request id into headers instead of context directly 2024-10-04 23:37:48 +02:00
Muyao CHEN
dd49035c8e feat: add errno 2024-10-03 21:54:16 +02:00
Muyao CHEN
51474ce04d feat: gracefully shutdown impl 2024-10-03 21:18:07 +02:00
Muyao CHEN
7886788c35 feat(requestid): put the request id to the response 2024-10-03 14:06:19 +02:00
Muyao CHEN
ad1d4de7c3 feat(requestid): validate uuid 2024-10-03 14:01:15 +02:00
Muyao CHEN
e6389f0fd2 feat(requestid): handle the case for new uuid 2024-10-03 13:53:30 +02:00
Muyao CHEN
d870d2a58d feat(requestid): test for the case where no requestId is given 2024-10-03 13:50:14 +02:00
Muyao CHEN
2a52fb6b88 feat(requestid): reqID in the header 2024-10-03 13:48:36 +02:00
Muyao CHEN
7024c76032 feat: Add request id middleware test 2024-10-03 13:41:32 +02:00
Muyao CHEN
04fceee835 feat: Implement logging module with zap 2024-10-01 23:36:22 +02:00