Roman Perekhod
ad73add529
fix the concurrent map writes error ( #2794 )
2025-07-16 07:27:45 +01:00
BombartSimon
1fe2638298
Implement MDNS Registry ( #2767 )
...
- Removed existing mDNS test file and replaced it with a new implementation.
- Added a new `mdns_registry.go` file that contains the MDNS registry logic.
- Updated the default registry to use the new MDNS registry.
- Refactored tests to accommodate the new MDNS registry implementation.
- Implemented service registration, deregistration, and service discovery using mDNS.
- Added encoding and decoding functions for mDNS TXT records.
- Implemented a watcher for monitoring service changes in the MDNS registry.
2025-05-16 19:03:36 +01:00
Brian Ketelsen
cd2b40ca4a
Add a selection of plugins to the core repo ( #2755 )
...
* WIP
* fix: default memory registry, add registrations for mdns, nats
* fix: same for broker
* fix: add more
* fix: http port
* rename redis
* chore: linting
2025-05-15 18:47:35 +01:00
Jörn Friedrich Dreyer
e032a6aafd
update ttl for updated nodes only ( #2740 )
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-11-15 14:08:17 +00:00
Jörn Friedrich Dreyer
14a1791011
invalidate service if node was not updated ( #2736 )
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-10-28 15:34:38 +00:00
littlecoderonway
4d5b3b084f
Fix registry cache broken ( #2715 )
...
* services is shared between routines, when application change services returned by get function may lead to other routine set a changed services to cache
* services is shared between routines, when application change services returned by get function may lead to other routine set a changed services to cache
---------
Co-authored-by: Shuaihu Liu <shuaihu.liu@shopee.com >
2024-07-02 09:30:51 +01:00
asim
610c00859f
v5
2024-06-04 21:40:43 +01:00
Lukasz Raczylo
a7522e7d6c
fix: struct field alignment ( #2632 )
2023-04-26 02:16:34 +02:00
David Brouwer
a3980c2308
feat: add test framework & refactor RPC server ( #2579 )
...
Co-authored-by: Rene Jochum <rene@jochum.dev >
2022-10-20 13:00:50 +02:00
keepstep
c25dee7c8a
fix(registry/cache): do not watch when ttl=0 eg: some custom registry no s… ( #2580 )
...
Co-authored-by: keep <keep@pa.com >
2022-10-08 15:19:48 +02:00
Rene Jochum
010b1d9f11
fix: linting issues ( #2566 )
2022-09-30 20:32:55 +02:00
David Brouwer
85c0b0b8eb
fix: some linting issues ( #2563 )
2022-09-30 16:27:07 +02:00
Mohamed MHAMDI
1db36357d5
feat(logger): add logger option to all micro components (override DefaultLogger) closes #2556 ( #2559 )
...
* feat(logger): add logger option to all components
* fix: refactor api/rpc.go
* fix: refactor api/stream.go
* fix: api/options.go comment
* fix(logger): do not use logger.Helper internally
* fix(logger): fix comments
* fix(logger): use level.Enabled method
* fix: rename mlogger to log
* fix: run go fmt
* fix: log level
* fix: factories
Co-authored-by: Mohamed MHAMDI <mmhamdi@hubside.com >
Co-authored-by: Davincible <david.brouwer.99@gmail.com >
2022-09-29 16:44:53 +02:00
刘志铭
d7d8123bc7
Fix a problem with the Register Memory
component ( #2545 )
2022-08-13 11:23:42 +01:00
JellyTony
65a2e4ed02
fix(registry): fix watch services only first time ( #2517 )
2022-06-29 08:49:22 +01:00
Chris Moran
c6d352c832
#2453 Fix with associated test update ( #2454 )
2022-03-17 10:22:05 +08:00
Asim Aslam
0c2041e439
add events package ( #2341 )
...
* add events package
* update go version
2021-11-08 08:52:39 +00:00
Benjamin
5d5aee1f08
replace ioutil with io and os ( #2327 )
...
set the go version to 1.16 in pr.yml and tests.yml, so as to be consistent with the version in go.mod.
2021-10-30 19:24:40 +01:00
Johnson C
ed690ed838
fixing #2308 ( #2326 )
...
IPV6 too many colons in address
net.SplitHostPort need ipv6 address in [host]:port format
2021-10-28 17:03:48 +08:00
Asim Aslam
1cd7cfaa6c
go-micro.dev/v4 ( #2305 )
2021-10-12 12:55:53 +01:00
Kurisu_Amatist
efd4ef0e62
fix(cache): only watch calling service in registry ( #2273 )
2021-09-19 10:40:21 +01:00
Asim Aslam
d94936f6c9
v3 ( #2104 )
...
* v3
* revert plugins
* fixup some issues
2021-01-20 13:54:31 +00:00
Goober
bf4ab679e1
Fix zk watchDir ( #2102 )
...
Signed-off-by: Goober <chenhao86899@gmail.com >
2021-01-05 17:32:17 +00:00
Asim Aslam
a7c31a0d2b
refactor all the things
2020-12-29 15:49:26 +00:00
Hao
b5431de2e8
Use singleflight to prevent registry cache breakdown ( #2098 )
2020-12-21 14:34:59 +00:00
Asim Aslam
dbe8c93e20
remove service implementations ( #2094 )
2020-12-11 11:12:44 +00:00
Dominic Wong
7be4a67673
MDNS registry fix for users on VPNs ( #1759 )
...
* filter out unsolicited responses
* send to local ip in case
* allow ip func to be passed in. add option for sending to 0.0.0.0
2020-07-03 11:30:59 +01:00
ben-toogood
cca8826a1f
registry/mdns: fix nil host bug ( #1703 )
2020-07-03 11:30:59 +01:00
Dominic Wong
e7ad031eb8
Check ipv4 or ipv6 address is valid before assigning
2020-05-27 15:47:12 +01:00
ben-toogood
56f281002b
Merge branch 'master' into registy-not-found
2020-05-14 19:39:43 +01:00
Ben Toogood
0d7250352f
Registry service: return not found error
2020-05-14 19:38:56 +01:00
Ben Toogood
8a802d8f7a
Fix registry address option unused
2020-05-14 18:00:13 +01:00
Ben Toogood
25c937fd0e
Naming changes
2020-05-13 13:38:13 +01:00
Ben Toogood
d781c9ae2d
Remove namespace specific logic
2020-05-13 13:35:34 +01:00
Ben Toogood
54951740bf
Authenticate on service start
2020-05-13 13:13:11 +01:00
Ben Toogood
346e034d0a
Add mutli-tenancy support to the registry
2020-05-13 10:40:08 +01:00
ben-toogood
f8837bfcbd
Merge branch 'master' into registry-namespace
2020-04-14 15:37:44 +01:00
Vasiliy Tolstov
268651df18
regenerate all proto based files ( #1531 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-14 16:25:09 +03:00
Ben Toogood
e17825474f
Add context options to the runtime
2020-04-14 12:32:59 +01:00
Asim Aslam
cf67d460b7
strip down mdns watcher
2020-04-12 11:01:09 +01:00
Asim Aslam
4e539361fa
strip file
2020-04-12 10:58:12 +01:00
Asim Aslam
ea2bb0275c
Strip external use of mdns
2020-04-11 13:02:53 +01:00
Asim Aslam
e5268dd0a6
move reg util to own package ( #1523 )
...
* move reg util to own package
* fix test
* fix broken static router
2020-04-10 17:41:10 +01:00
Asim Aslam
4fd12430d0
cleanup mdns files
2020-04-10 17:19:26 +01:00
Asim Aslam
d134b469be
rename file
2020-04-10 17:17:24 +01:00
Asim Aslam
9a685b2df5
delete k8s registry ( #1522 )
2020-04-10 17:15:20 +01:00
Vasiliy Tolstov
1063b954de
dont display t.Log/t.Logf as errors in github actions ( #1508 )
...
* fix tests and github action annotations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-09 14:05:46 +03:00
Vasiliy Tolstov
1fbc056dd4
minimize allocations ( #1472 )
...
* server: minimize allocations on re-register
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: stop old instance before Init()
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* client/grpc: fix allocations in protobuf marshal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* codec/json: fix allocations in protobuf marshal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* remove stop from init
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* codec/grpc: expose MaxMessageSize
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* codec: use buffer pool
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* metadata: minimize reallocations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* util/wrapper: use metadata helper
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* registry/cache: move logs to debug level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: move logs to debug level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: cache service only when Advertise is ip addr
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: use metadata.Copy
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-08 10:50:19 +01:00
Vasiliy Tolstov
9e6db79860
regenerate all proto ( #1440 )
...
* regenerate all proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* regenerate from proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* regenerate from proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-30 21:58:32 +01:00
Vasiliy Tolstov
e4acc63d5f
add mdns registry debug ( #1434 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-27 22:33:49 +03:00