1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-14 02:33:03 +02:00
Commit Graph

41 Commits

Author SHA1 Message Date
lawlielt
34d9666e0e
fix: clear err after app stop err handling (#3146) 2024-01-05 11:06:12 +08:00
yonwoo9
1bb98b6a19
chore: fix words and modify some syntax declarations (#3113)
* chore:fix words

* fix:filter nodes len preallocate;replace func as cancelFunc; fix eureka mutex
2023-12-14 11:31:51 +08:00
LinEvil
abd1d354af
fix: sctx cause request ctx canceled during graceful shutdown (#3097) 2023-12-01 13:37:42 +08:00
baozhecheng
a45f3afdff Revert "feat: support polaris service governance"
This reverts commit b67d514bfa.
2022-12-20 14:56:36 +08:00
baozhecheng
b67d514bfa feat: support polaris service governance 2022-12-20 14:55:50 +08:00
JellyTony
590c469081
feat: add app Before and Afters option (#2403)
* feat: add app Before and Afters option

* feat: before and Afters with context params

* style: declaration of "err" shadows declaration

Co-authored-by: JeffreyBool <zhanggaoyuan@mediatrack.cn>
2022-11-07 18:34:31 +08:00
jesse.tang
6ca225b078
add notes by not used defer (#2291) 2022-08-18 10:58:56 +08:00
charviki
a3439c9713
fix: catch server stop error (#2125)
Co-authored-by: chenwq <chenwq@mvalley.io>
2022-06-22 22:50:42 +08:00
Tony Chen
503ec03f37
app: fix instance nil when not registered (#2059)
* fix instance nil when not registered

* fix data race
2022-05-27 01:15:21 +08:00
Tony Chen
7a5c2207a1
fix: starter parent ctx (#1895)
* fix: starter parent ctx

* fix stop ctx
2022-03-18 23:05:29 +08:00
hoslo
f68702a8c2
fix: graceful shutdown (#1873) 2022-03-15 11:02:10 +08:00
Sasha Melentyev
d679466a7b
perf(app): add prealloc (#1843) 2022-02-26 23:23:26 +08:00
realityone
0ed2e0f379
feat(log): add global logger appliance, as process level default logger (#1761)
* add global logger appliance, as process level default logger

* replace DefaultLogger as global logger
2022-01-12 15:34:49 +08:00
Wimi Yuan
2acede53f3
feat(app): app info delivery to stop context (#1649) 2021-11-24 17:21:29 +08:00
包子
70f58b264a
fix(app): use new context when app stop (#1589) 2021-10-28 11:09:17 +08:00
longxboy
52876d3e20
test: add app and transport test (#1572)
* add app and transport test
2021-10-20 22:03:39 +08:00
aiscrm
9743ad8d32
fix registry TTL. (#1537)
* fix registry.
1. When etcd stops, the application cannot stop.
2. Stop consul first, then stop app. Then start consul, the registered service remains in consul registry as an unhealthy status.

Co-authored-by: corel <corelchen@qq.com>
2021-10-11 13:46:07 +08:00
SparkLee
09969457e2
fix typo (#1490) 2021-09-17 04:27:34 +08:00
longxboy
906a9ead4f
fix:reuse parent ctx cause unexpected stop of App (#1429)
* fix reuse parent ctx cause unexpected stop of App
2021-09-06 21:31:33 +08:00
Kagaya
f7588a47de
fix: ci lint error (#1391)
* fix lint check

* fix lll lint error

* fix build error

* fix gomnd

* fix shadow declaration

* add make test command

* update
2021-08-31 10:14:57 +08:00
Xudong Cai
b44e47b087
refactor: optimize the code and use golangci-lint to check for any errors (#1298)
* feat: optimize the code and use golangci-lint to check for any errors

* fix: TestLogger unit test
2021-08-16 10:35:08 +08:00
zwhyb
5710bf0e30
fix endpoint panic (#1291) 2021-08-02 18:51:07 +08:00
Tony Chen
97694b19ad
test: add registry tests (#1260)
* add registry tests

* add registrar timeout

Co-authored-by: 包子 <baozhecheng@foxmail.com>
2021-07-27 15:35:47 +08:00
Tony Chen
59f54b2661
Revert/root ctx v2 (#1088)
* Revert "remove app info (#1081)"

This reverts commit 1dab58616b.

* add http base ctx

Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-06-20 23:00:27 +08:00
Tony Chen
1dab58616b
remove app info (#1081) 2021-06-19 15:40:28 +08:00
Tony Chen
40e34b32f1
clean examples (#1041)
* clean examples
2021-06-13 08:42:26 +08:00
Tony Chen
99719dd667
cmd: update cmd version (#1040)
* update cmd version

* update app info
2021-06-13 01:07:43 +08:00
longxboy
e1d6377542
add feat endpoint (#972)
* add feature endpoint
2021-05-31 16:10:17 +08:00
Tony Chen
149fc0195e
kratos: add application info (#968)
* add application info

* add base context

* add client target
2021-05-29 23:52:05 +08:00
Tony Chen
4cb3fd62e3
rename Registry to Endpointer (#964) 2021-05-28 15:30:55 +08:00
Tony Chen
41ea1fbc76
fix data race (#963)
* fix data race
2021-05-28 15:08:25 +08:00
Tony Chen
9b31e6293b
app: fix app ready (#961)
* fix app ready
2021-05-27 22:16:43 +08:00
Tony Chen
5d36b6e67c
kratos: fix: unable to get the correct port when registering the service (#925)
* fix: unable to get the correct port when registering the service
2021-05-17 23:04:22 +08:00
Tony Chen
d78eb3ee4b
log: add level printer (#918)
* add level printer

* fix helper args

* fix test

* Update README.md
2021-05-17 16:34:28 +08:00
Tony Chen
ee211bfe1b
remove unused options (#767) 2021-03-14 16:04:37 +08:00
Tony Chen
50af5b2588
add before&after hooks (#751)
* add before&after hooks
2021-03-07 21:35:52 +08:00
chenzhihui
b97c3c4160 fix registry option 2021-03-03 23:09:35 +08:00
longXboy
f984dc5c6d rename naming 2021-02-28 20:40:05 +08:00
longXboy
8f064855d9 split naming registry 2021-02-28 13:39:45 +08:00
Tanghui Lin
ef996c826a
add context for registry (#716)
* add context for registry
2021-02-23 10:20:00 +08:00
chenzhihui
3566386a89 init v2 2021-02-17 17:14:47 +08:00