ad58ab6943
fix codeql issue
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-09-06 10:51:13 +03:00
a45b672c98
drop uuid and use modified nanoid
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-08-20 22:40:48 +03:00
86626c5922
fieldalignment of all structs to save memory
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-27 08:32:47 +03:00
00a4785df3
fixup
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-27 00:03:18 +03:00
8db55d2e55
router: use dns as default router
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-26 17:43:39 +03:00
bbbcb22565
fieldalignment of all structs to save memory
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-06 19:45:13 +03:00
abb9937787
fix lint issues ( #16 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-13 01:46:16 +03:00
827d467077
micro: rewrite options to support multiple building blocks
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 13:17:32 +03:00
daffa9e548
use metadata.Metadata ( #8 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-18 16:50:41 +03:00
40b0870cf8
fix linting ( #4 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-03 01:08:23 +03:00
14c97d59c1
many improvements with options and noop stuff
...
* add many options helpers
* fix noop client to allow publish messages to topic in broker
* fix noop server to allow registering in registry
* fix noop server to allow subscribe to topic in broker
* fix new service initialization
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-16 09:38:57 +03:00
5787a1afb8
more useful router new options func
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-17 15:44:35 +03:00
53654185ba
add logger to options
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-29 17:44:49 +03:00
9c695ac343
split router implementations
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-28 12:19:47 +03:00
7cf42589b3
cleanup deps
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-28 11:52:51 +03:00
8076e410a9
fix repocard issues ( #20 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 14:33:36 +03:00
0f4b1435d9
move implementations to external repos ( #17 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 13:44:41 +03:00
c4a303190a
lint fixes ( #14 )
...
* lint fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-21 14:53:21 +03:00
06136312bb
regen files with never protoc ( #6 )
...
* regen files with never protoc
* rewrite import path
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-19 17:47:17 +03:00
Asim Aslam
4413372a3f
Decruft the broker by removing Event interface ( #1940 )
2020-08-18 14:00:51 +01:00
Asim Aslam
e1248f90f4
update options
2020-08-17 23:09:41 +01:00
Asim Aslam
bb7fe21c46
unused variables
2020-08-17 23:00:27 +01:00
Asim Aslam
50ec6c748f
cleanup client/selector/lookup ( #1937 )
...
* cleanup client/selector/lookup
* add mdns router, remove registry from client
* fix roundtripper
* remove comment
* fix compile issue
* fix mucp test
* fix api router
2020-08-17 22:44:45 +01:00
Asim Aslam
870a1ebc07
dead code
2020-08-17 10:04:52 +01:00
Asim Aslam
55d62fc1a5
Strip Advertise/Process from router
2020-08-14 23:51:52 +01:00
ben-toogood
012ec6a998
router/registry: fix expiring routes bug ( #1927 )
2020-08-11 16:57:04 +01:00
ben-toogood
e162e6d505
router/registry: fix bug which impacts service registered in multiple domains ( #1925 )
...
* router/registry: fix bug which impacts service registered in multiple domains
* router/registry: bugfix
2020-08-11 12:42:22 +01:00
Janos Dobronszki
96836f2e43
Decrease log levels in router/registry package to not appear for CLI users ( #1917 )
2020-08-10 13:57:45 +01:00
Asim Aslam
b2582c0992
fix deadlock bug
2020-08-09 19:39:21 +01:00
Asim Aslam
ed704640aa
getDomain should return the default domain
2020-08-09 19:08:25 +01:00
Asim Aslam
69a2032dd7
lower log level to debug
2020-08-08 14:04:18 +01:00
Asim Aslam
fc67593ee4
cleanup router watcher logic
2020-08-08 01:04:38 +01:00
Asim Aslam
712fe39a62
initChan is never evaluated because watchRegistry is a blocking call
2020-08-07 23:44:43 +01:00
Asim Aslam
324c4e6886
Router refresh ( #1912 )
...
* checkpoint
* Refresh and prune routes periodically in the registry router
* remove comment
2020-08-07 20:53:38 +01:00
Asim Aslam
aefd052dd7
Etcd router bug fixing etcd path prefix matching name ( #1899 )
...
* add logging and don't get nodes where they exist in router
* add more logging
* Fix the etcd bug for name matching of keys and prefixes matching names
2020-08-06 12:42:14 +01:00
Asim Aslam
2b79910ad9
add logging and don't get nodes where they exist in router ( #1898 )
...
* add logging and don't get nodes where they exist in router
* add more logging
2020-08-06 11:32:06 +01:00
Asim Aslam
8674dc8e62
Remove precache in favour of just pulling by default
2020-08-06 10:27:58 +01:00
ben-toogood
07fef9fd33
router/registry: fix initialization bug ( #1893 )
2020-08-04 11:43:01 +01:00
ben-toogood
83a64797fb
Fix proxy being overriden by default addresses ( #1886 )
2020-07-31 08:55:08 +01:00
ben-toogood
cb4a2864da
router/registry: fix not started bug ( #1877 )
2020-07-28 09:01:08 +01:00
Asim Aslam
563768b58a
v3 refactor ( #1868 )
...
* Move to v3
Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2020-07-27 13:22:00 +01:00
bcc890e47c
router: pass node metadata to route instead of service metadata ( #1855 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-07-17 16:45:22 +01:00
ben-toogood
a4252ba69c
router/registry: use warn error level ( #1826 )
2020-07-13 15:27:14 +01:00
ben-toogood
c817f29d6e
router/registry: fix registry not found bug ( #1794 )
2020-07-03 13:35:59 +01:00
ben-toogood
4ff114e798
router/registry: fix rlock bug when registry errors ( #1788 )
...
* client: add select options
* router/registry: fix rlock bug when registry errors
* Revert "client: add select options"
This reverts commit 4d5283452e183f7387b604b51bde1deaf87ee391.
* router/registry: findRoutes under rlock
* add test
Co-authored-by: Dominic Wong <dom@micro.mu>
2020-07-02 18:29:11 +01:00
ben-toogood
174e44b846
Deprecate client/selector ( #1767 )
...
* client/{grpc,rpc}: depricate selector (wip)
* {client,cmd}: remove client/selector
* deprecate client/selector
* router/static: fix lookup
* config/cmd: add support for legacy static selector flag
* config/cmd: add support for legacy dns selector flag
2020-07-01 17:06:59 +01:00
Dominic Wong
a63480a81a
router/registry: fix fallback fails if service has been seen already ( #1776 )
2020-07-01 15:20:30 +01:00
ben-toogood
64e9185386
router/registry: fix nil eventChan bug ( #1773 )
...
* router/registry: fix nil eventChan bug
2020-07-01 12:03:13 +01:00
ben-toogood
a64078b5c3
router/service: handle not found error ( #1770 )
2020-07-01 10:18:19 +01:00
Dominic Wong
58845d7012
only prewarm the route table if requested ( #1765 )
2020-07-01 10:05:21 +01:00