Milos Gajdos
59035ab801
Removed debug logs. advertiseToNetwork() replaced watchTable().
...
Debug logs that were helpful when squashing bugs have been removed.
advertiseToNetwork replaced the watchTable which originally watched the
routing table entries. We now take a different approach to propagating
the local registry services into the network registry.
2019-06-19 18:03:43 +01:00
Milos Gajdos
d3525ebab3
Debug messages. Squashed Add Route bugs and few others.
2019-06-19 18:03:43 +01:00
Milos Gajdos
2674294cbe
Delete route when no node is available.
2019-06-19 18:03:43 +01:00
Milos Gajdos
b20dd16f92
Watcher now emits events instead of results.
2019-06-19 18:03:43 +01:00
Milos Gajdos
5088c9d916
Increased Network registry TTL. Routing Table remove is now delete.
...
Remove has been renamed to Delete to be more in line with the framework.
A bunch of comments have been added/updated for the future generations
We have increased the Network Registry TTL to 2 minutes.
2019-06-19 18:03:42 +01:00
Milos Gajdos
f62fcaad76
Added router ID. Deregister remote services when router is stopped.
...
Added ID function to router interface.
Network registry addresses are deregistered when the router is stopped.
Query has been updated to search for particular GW in lookups.
2019-06-19 18:03:42 +01:00
Milos Gajdos
322eaae529
Small code refactoring. Added more comments and parseToNode func
2019-06-19 18:03:42 +01:00
Milos Gajdos
6a33b7576b
Removed router watcher code duplication. Small code refactor.
2019-06-19 18:03:42 +01:00
Milos Gajdos
6e669d4611
Reorganised source. Renamed files. No Code change.
2019-06-19 18:03:42 +01:00
Milos Gajdos
95fc625e99
Big refactor. New Registry watchers. New options. New names.
2019-06-19 18:03:42 +01:00
Milos Gajdos
338e0fdf18
Lots of refactoring. We now have basic routing table watcher.
2019-06-19 18:03:42 +01:00
Milos Gajdos
5899134b66
Simplified API. Correct Router initialization. Debug printing.
2019-06-19 18:03:41 +01:00
Milos Gajdos
da18ea4ab5
Changed default router table modifications. Entry is now Route.
2019-06-19 18:03:41 +01:00
Milos Gajdos
459f4c8387
Added Router ID and query options to limit number of results
2019-06-19 18:03:41 +01:00
Milos Gajdos
9c57f32f58
Added Entry type. Basic implementation of Router and Table
2019-06-19 18:03:41 +01:00
Milos Gajdos
ad92e6821e
Removed DefaultTable() from global vars
...
We will not initialize DefaultTable as global var unless the users asks
for it explicitly.
2019-06-19 18:03:41 +01:00
Milos Gajdos
d7f0db04ec
Added network ID option. Added mutex to routing table.
2019-06-19 18:03:41 +01:00
Milos Gajdos
e4311c3a10
Redefined and polished some interfaces and data structures.
2019-06-19 18:03:41 +01:00
Milos Gajdos
ee8b6b3114
Redefeind interfaces; Added better modelled data strauctures
...
Router interface has been redefined which fits better with what we are
looking for.
Routing table now offers a comprehensive set of information about its
entries which will make up for rich queries in the future
Query interface has been defined to enable current basic and more
advanced queries in the future.
2019-06-19 18:03:41 +01:00
Milos Gajdos
08da7c1283
First commit: Outline of Router interface
2019-06-19 18:03:40 +01:00
Asim Aslam
6587ae07be
Merge pull request #523 from micro/grpc
...
GRPC Proxy
2019-06-19 15:31:45 +01:00
Asim Aslam
1c1dae0642
Fix the grpc test
2019-06-19 12:34:45 +01:00
Asim Aslam
a0cb105cf6
Merge pull request #525 from magodo/consul_config_prefix_no_leading_slash
...
`prefix` in consul api starts with no leading slash
2019-06-19 08:12:35 +01:00
magodo
606b1ff7cf
prefix
in consul api starts with no leading slash
...
When `consul.StripPrefix(true)` is set, current impl. will pass the
specified prefix (or default prefix) when calling consul api.
However, `prefix` in consul api starts with no leading slash, so
the default prefix (`/micro/config`) doesn't actually work.
I avoid code changes (esp. the one in `util.go`) to eliminate
impact on users who already notice it.
2019-06-19 14:42:09 +08:00
Asim Aslam
73a8b14145
Merge pull request #524 from milosgajdos83/gosssip-remove-node
...
Properly delete service nodes
2019-06-19 07:11:27 +01:00
Milos Gajdos
c0a628d65b
Simplified delService code; properly delete service nodes
2019-06-18 21:39:00 +01:00
Asim Aslam
e9c2df775a
Merge branch 'master' into grpc
2019-06-18 18:51:55 +01:00
Asim Aslam
d3a6297b17
Add working grpc proxy config
2019-06-18 18:51:52 +01:00
Asim Aslam
7266c62d09
remove comment
2019-06-18 15:33:31 +01:00
Asim Aslam
6459cdfc21
propagate updates to local watchers
2019-06-18 14:42:56 +01:00
Asim Aslam
ed54384bf4
Update network
2019-06-18 11:56:11 +01:00
Asim Aslam
51560009d2
go fmt
2019-06-18 11:04:36 +01:00
Asim Aslam
cf2f8a9a55
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-06-18 11:04:16 +01:00
Asim Aslam
97cf2cd7c3
go fmt
2019-06-18 11:04:06 +01:00
Asim Aslam
d9fe8f802b
Merge pull request #522 from xpunch/grpcMessageIssue
...
grpc message should be able to set
2019-06-18 10:45:11 +01:00
johnson
b754c33549
grpc message should be able to set
2019-06-18 17:07:31 +08:00
Asim Aslam
59eaa89bac
Node is a network
2019-06-17 21:11:39 +01:00
Asim Aslam
f65694670e
add cruft
2019-06-17 20:05:58 +01:00
Asim Aslam
1a571b8c82
Add network transport
2019-06-17 18:25:42 +01:00
Asim Aslam
308673b393
add network package
2019-06-17 16:57:53 +01:00
Asim Aslam
3a454d870a
Merge pull request #520 from xpunch/grpcSubscriberIssues
...
grpc server subscriber missing some bug fixings
2019-06-17 11:57:37 +01:00
johnson
baaa386e27
a. add default context type when header not found
...
b. return subscribe error after handler finished
2019-06-17 17:54:37 +08:00
Asim Aslam
a619321b64
Merge pull request #519 from xpunch/master
...
missing nil check for grpc WaitGroup
2019-06-17 10:30:28 +01:00
johnson
363fb551af
missing nil check for grpc WaitGroup
2019-06-17 17:07:55 +08:00
Asim Aslam
7a87ae0efa
Merge pull request #514 from unistack-org/cleanup
...
remove mock data from memory registry
2019-06-13 07:50:08 +01:00
Vasiliy Tolstov
ab692ff590
remove mock data from memory registry
...
memory registry can be used as fast inprocess registry,
so mock data needs to be in tests only
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-06-13 00:51:56 +03:00
Asim Aslam
2b18b11ab1
Merge pull request #513 from micro/crufting
...
Crufting
2019-06-12 13:03:17 +01:00
Asim Aslam
af096951fc
update import names for mucp
2019-06-12 12:54:45 +01:00
Asim Aslam
97967cbe14
move options under config
2019-06-12 12:45:42 +01:00
Asim Aslam
a6e09c9249
Merge branch 'master' into crufting
2019-06-12 12:29:57 +01:00