ben-toogood
afe6861e2f
Update the k8s deployment to use metadata labels & custom source ( #1271 )
2020-02-28 15:07:55 +00:00
ben-toogood
962567ef42
Implement config singleton ( #1268 )
...
* Implement config singleton
* Pass token in grpc request headers
* Refactor BearerScheme
* Fix typo
2020-02-28 12:58:27 +00:00
Asim Aslam
e21ed3a183
gen account on base32 decode failure ( #1269 )
2020-02-27 16:11:05 +00:00
64a5ce9607
various fixes ( #1267 )
...
* logger: remove Panic log level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: add missing Unlock in Subscribe error
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: minor code change
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: extend test suite with pub/sub testing
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: fix invalid check and allow subscriber error to be returned
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: add pubsub tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* client/grpc: check for nil req/rsp
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-26 18:34:40 +00:00
Asim Aslam
d651b16acd
generate pseudo accounts ( #1264 )
...
* generate pseudo accounts
* when you think you're being clever
* return garbage pseudo account when no token
2020-02-26 13:42:32 +00:00
Eric
1034837f69
Adjusting the BeforeStart () position ( #1263 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-02-26 11:44:10 +03:00
Lars Lehtonen
80f2bfd5d0
config: remove unused sep variable ( #1262 )
2020-02-26 08:25:33 +00:00
Asim Aslam
6aaaf54275
add MICRO_AUTH_TOKEN, parse token in wrapper, preload config and othe… ( #1261 )
...
* add MICRO_AUTH_TOKEN, parse token in wrapper, preload config and other things
* fix wrapper panic
2020-02-25 22:15:44 +00:00
Di Wu
603d37b135
Set option and cli args to the service profile ( #1259 )
2020-02-25 16:42:42 +00:00
Eric
53c3bff819
add Panic & Panicf to logger ( #1258 )
...
* add Panic & Panicf to logger
2020-02-25 17:44:29 +03:00
ben-toogood
dcf859098b
Fix k8s commands for github ( #1257 )
2020-02-25 11:39:03 +00:00
b4a743898e
fix router panic ( #1254 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 23:15:59 +00:00
ben-toogood
f1e7ea3020
Handle non IsNotExist errors in config ( #1251 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-02-24 18:07:11 +00:00
ben-toogood
5e8d5834eb
Dynamic Runtime source for k8s with github packages ( #1252 )
...
* Dynamic Runtime source for k8s
* Still check for source
* Replace / with - for k8s service names
* Simplify sourceForName function
2020-02-24 17:47:47 +00:00
ben-toogood
ffdf986aac
Refactor auth: add token and store implementations ( #1230 )
...
* Refactor auth: add token and memory implementations
* Fix typo
* Remove memory auth (implemented already by the store implementation), revert default to noop
* Add grpc header
* Global Config
* config/global => util/config
* Rename package to remove confict
* Tweak
* Improve Error Handling
2020-02-24 15:07:27 +00:00
Jake Sanders
56f8115ea8
Rename PR job ( #1250 )
2020-02-24 14:16:51 +00:00
5b0175c2e5
allocations improvements and tunnel fixes ( #1248 )
...
* reduce allocations in tunnel code
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* another allocation fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* allocate maps with len if it known
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* allocate key for send once
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 14:15:20 +00:00
Jake Sanders
01d88601c0
Split PR and merge tests ( #1249 )
2020-02-24 14:11:17 +00:00
Lars Lehtonen
d467236f8f
broker/nats: remove unused setPublishOption() ( #1234 )
...
broker/nats: remove unused setSubscribeOption()
2020-02-24 13:49:27 +00:00
24d574ae71
server/grpc: add MaxConn option to limit max inflight requests ( #1247 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 13:48:56 +00:00
cf0b39eaac
logger fixes ( #1244 )
...
* logger: fix race conditions
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* restore util/log for compatibility
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 13:07:40 +00:00
1f767ba18c
update go modules ( #1240 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-23 20:47:44 +00:00
Asim Aslam
915c424213
Add docker build ( #1239 )
2020-02-23 15:57:21 +00:00
117f56ebf7
prune util/log and user logger ( #1237 )
...
* prune util/log and user logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* plaintext logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* add newline
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-23 13:45:20 +00:00
Gao.QiLin
ceed8942fc
Update README.md change godoc => go.dev ( #1236 )
...
* Update README.md add go dev
* Update README.zh-cn.md add go dev
2020-02-22 08:56:42 +00:00
d1e25e7ead
add metadata set method ( #1232 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-21 23:04:47 +03:00
Jake Sanders
7e24c0c1cf
Also run tests on PR ( #1233 )
2020-02-21 17:57:07 +00:00
Jake Sanders
ca251ba111
Switch from Travis CI to GitHub Actions ( #1231 )
...
* Create Github Action to run tests on push
* -v
* Update tests.yml
* TODO: Fix tests
* Fix colours
* Delete .travis.yml
* Update tests.yml
* builds -> build
2020-02-21 17:43:50 +00:00
Asim Aslam
116855572b
Add log level helper funtions ( #1229 )
2020-02-21 08:43:23 +00:00
Asim Aslam
ee977acfef
strip SetGlobalLevel ( #1228 )
2020-02-21 08:28:21 +00:00
Sumanth Chinthagunta
3fa7c26946
logger with helper methods ( #1216 )
...
* support unix daemon socket
* refactor(logger): logger fields changed to map[string]interface{}
* improvement(logger): adding string to Level Parser
* improvement(logger): rename ParseLevel to GetLevel
* refactor(logger): adding basic logger
adding micro default logger, and refactor logger interface
* refactor(logger): moved basic logger to top level package
* refactor(logger): adding default logger
2020-02-21 07:57:59 +00:00
Lars Lehtonen
88457b812e
tunnel: Prune Unused Functions ( #1224 )
...
* tunnel: remove unused link.setLoopback()
* tunnel: remove unused link.accept()
* tunnel: remove unused link.connect()
2020-02-20 17:05:49 +00:00
Asim Aslam
78df154a4d
move log level setting to option ( #1222 )
2020-02-20 08:26:12 +00:00
Lars Lehtonen
c7eed618c2
server/grpc: Prune Unused Code ( #1220 )
...
* server/grpc: remove unused grpcServer.newCodec()
* server/grpc: remove unused defaultRPCCodecs
2020-02-19 20:58:22 +00:00
ben-toogood
36bcd3bd82
Improve JWT Package Errors ( #1206 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-02-19 09:51:43 +01:00
Asim Aslam
f4118dc357
secure the grpc client ( #1215 )
...
* secure the grpc client
* make compile
* Add system cert pool
* Revert manually adding ca certs
* Tweak comment
Co-authored-by: ben-toogood <bentoogood@gmail.com >
2020-02-19 08:44:35 +00:00
58598d0fe0
fixes for safe conversation and avoid panics ( #1213 )
...
* fixes for safe convertation
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix client publish panic
If broker connect returns error we dont check it status and use
it later to publish message, mostly this is unexpected because
broker connection failed and we cant use it.
Also proposed solution have benefit - we flag connection status
only when we have succeseful broker connection
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* api/handler/broker: fix possible broker publish panic
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-18 23:05:38 +00:00
6248f05f74
add missing option to client.NewMessage ( #1212 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-18 14:18:59 +03:00
ben-toogood
aa9a0a8d23
Fix Micro Proxy nil Transport Bug ( #1208 )
2020-02-17 12:28:48 +03:00
ben-toogood
1e40c86dfe
Ignore gRPC Proxy ( #1205 )
2020-02-17 08:14:45 +00:00
Asim Aslam
9696efde02
reorder auth interface ( #1204 )
2020-02-16 19:36:45 +00:00
Asim Aslam
b3fc8be24e
normalise proxy name ( #1203 )
2020-02-15 21:57:30 +00:00
Sumanth Chinthagunta
fc5339a368
[W.I.P] refactor(logger): logger fields changed to map[string]interface{} ( #1198 )
...
* support unix daemon socket
* refactor(logger): logger fields changed to map[string]interface{}
* improvement(logger): adding string to Level Parser
* improvement(logger): rename ParseLevel to GetLevel
2020-02-15 18:19:28 +00:00
Asim Aslam
964b7dee3f
add tls config to server ( #1202 )
...
* add tls config
* add TLSConfig to acme provider
2020-02-15 15:10:26 +00:00
Asim Aslam
158949d0d0
accept Listen option in grpc server ( #1201 )
2020-02-15 14:09:24 +00:00
Asim Aslam
eed8a0bf50
delete proxy cached route before updating ( #1200 )
2020-02-15 12:05:22 +00:00
Asim Aslam
c691d116ab
when the stream errors cleanup the connection ( #1199 )
2020-02-15 11:35:08 +00:00
Eric
cbe8b7dd09
Removed redundant spaces ( #1196 )
2020-02-14 10:32:02 +03:00
Asim Aslam
203486fd31
check for etcd watcher canceled value
2020-02-13 22:34:56 +00:00
Asim Aslam
d9b3b17582
set dial timeout in stream
2020-02-13 18:51:32 +00:00
ben-toogood
e080ecb43a
Auth Improvements ( #1195 )
...
* Exclude Stats & Trace from Auth
* Update Excluded Endpoints Format
* Tweak Implementation
2020-02-13 14:07:14 +00:00
ben-toogood
ea70711dd3
Exclude Stats & Trace from Auth ( #1192 )
2020-02-13 12:02:29 +00:00
6dc942bc19
client/grpc: fix panic on invalid message ( #1191 )
...
* client/grpc: fix panic on invalid message
* travis: disable lint and race for now
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-13 14:57:21 +03:00
Janos Dobronszki
d76baf59de
Trace type is now being recorded ( #1188 )
2020-02-12 10:57:17 +00:00
79ad1e6fe3
various fixes for broker and messaging in server ( #1187 )
...
* provide broker disconnect messages in server
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* broker/eats: another fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-11 18:41:23 +00:00
2764de9a1a
broker/eats: broker disconnect fix ( #1186 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-11 15:46:50 +00:00
Asim Aslam
d1d6eada98
parse url encoded form in rpc handler ( #1183 )
...
* parse url encoded form in rpc handler
* Remove comment
2020-02-11 11:27:16 +00:00
ben-toogood
4a03183481
Return a 401 error on invalid auth tokens ( #1184 )
2020-02-11 11:22:22 +00:00
Asim Aslam
8ea84ac3eb
Fix router panic for nil watcher
2020-02-10 15:38:41 +00:00
ben-toogood
4401c12e6c
Auth Wrapper ( #1174 )
...
* Auth Wrapper
* Tweak cmd flag
* auth_excludes => auth_exclude
* Make Auth.Excludes variadic
* Use metadata.Get (passes through http and http2 it will go through various case formats)
* fix auth wrapper auth.Auth interface initialisation
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-02-10 08:26:28 +00:00
c706afcf04
logger helper to pass down it via context ( #1180 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-09 21:26:46 +00:00
Lars Lehtonen
ca1d0b94c3
config/cmd: remove 8 unused variables ( #1175 )
2020-02-08 11:19:10 +00:00
67acd9288b
config/source/cli: fix tests ( #1179 )
...
* config/source/cli: fix tests
* skip mdns test in travis
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-08 02:45:32 +03:00
0bf6c9fc08
config/source/cli: fix default flag value loading ( #1178 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-08 02:14:34 +03:00
99807a680c
strip Micro-Topic header from incoming context in client.Call ( #1177 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-07 22:09:52 +00:00
f0f7f860d6
add some docs ( #1176 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-07 21:48:24 +00:00
Asim Aslam
ef537270ad
Don't store traces for Debug endpoints
2020-02-07 20:58:03 +00:00
Asim Aslam
c7f075d157
rename file
2020-02-07 14:00:27 +00:00
Asim Aslam
812ea78604
Fix runtime deadlock
2020-02-07 14:00:09 +00:00
Asim Aslam
0755084a59
fix deadlock
2020-02-07 13:55:55 +00:00
ben-toogood
fe7f5a4134
Runtime Retries Limit ( #1163 )
...
* Implement Runtime Retries
* Remove Debug
* Action Feedback
* Refactor Retries
* Fix WithRetires Typo
2020-02-07 12:02:41 +00:00
ben-toogood
19c454ec4b
Fix Local Runtime Default Command ( #1173 )
...
* Auth API Proto
* Fix local runtime bug
* Add Platform Proto
* Restructuring
2020-02-07 11:39:26 +00:00
Asim Aslam
0e9b4c26a4
import with braces
2020-02-06 21:39:08 +00:00
Asim Aslam
d40b13a045
mux to mtx
2020-02-06 21:37:17 +00:00
Asim Aslam
4079b22c1e
reorder logger methods
2020-02-06 21:36:33 +00:00
Shu xian
fdfb2bc4c1
[WIP] logger first ( #1161 )
...
* logger first
* log->logger
* update comment
* add context in Options
* add Fields
* remove logfi
* add field encode
* add common Field Types
* update logger field
2020-02-06 21:35:46 +00:00
Asim Aslam
dbeb7cfe9c
remove errors import
2020-02-06 18:45:12 +00:00
Asim Aslam
512df2628f
trim source url if its set to github.com/
2020-02-06 18:34:16 +00:00
Janos Dobronszki
92571db693
Tracing: traces now correctly form a tree ( #1170 )
...
* First cut of trace
* Dial it back yo
* Defensive programming
2020-02-06 17:22:16 +00:00
ben-toogood
16552620e0
Runtime Custom Source (Part 2) ( #1169 )
2020-02-06 16:16:01 +00:00
Ben Toogood
5414195dc3
Add Args
2020-02-06 12:31:54 +00:00
Ben Toogood
0591760932
Arg => Args
2020-02-06 12:17:16 +00:00
Ben Toogood
48b9f3f5e9
Fix
2020-02-06 11:28:34 +00:00
Ben Toogood
e46278a766
Test
2020-02-06 11:24:56 +00:00
Ben Toogood
2925b1615c
Fix
2020-02-06 11:15:30 +00:00
Ben Toogood
fc4191c647
Fix
2020-02-06 11:12:40 +00:00
Ben Toogood
111126c780
Debugging
2020-02-06 11:00:14 +00:00
Ben Toogood
54371bba6a
Debugging
2020-02-06 10:55:41 +00:00
Ben Toogood
c28737e88e
Debugging
2020-02-06 10:54:11 +00:00
Ben Toogood
c7d922fac2
Debugging
2020-02-06 10:49:01 +00:00
Ben Toogood
f8e696bd30
Debugging
2020-02-06 10:44:12 +00:00
Ben Toogood
6aef28dad2
Runtime set service source
2020-02-06 10:33:23 +00:00
7105e4099c
pass micro errors from grpc server to grpc client ( #1167 )
...
* pass micro errors from grpc server to grpc client
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* wrap micro errors.Error to grpc status
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-06 10:18:33 +00:00
Ben Toogood
f0762bbb6b
Improve Logging
2020-02-06 10:16:32 +00:00
Ben Toogood
243c6a4246
Debug
2020-02-06 10:08:56 +00:00
Ben Toogood
9983aea928
Tidying Up
2020-02-06 09:29:27 +00:00
Ben Toogood
aa58a9749b
Action Asim's Feedback
2020-02-06 09:17:10 +00:00
ben-toogood
d8110b70a3
Runtime custom docker img ( #1168 )
...
* Add DeploymentOptions to K8s Client
* WithBaseImage for Runtime
* Revert Change
* Fix sequencing
2020-02-06 08:52:25 +00:00
a44dc90d45
fix ctx.Done issue #720 ( #1166 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-05 21:13:14 +00:00
Shu xian
12181bd441
fix LevelInfo > LevelWarn ( #1162 )
2020-02-05 18:16:57 +00:00
Ben Toogood
8d44f7226f
Merge branch 'master' of https://github.com/micro/go-micro
2020-02-05 13:59:51 +00:00
ben-toogood
bf747a86f4
Runtime ( #1160 )
...
* Add String to Runtime interface
* Setup Dynamic Runtime Configuration
2020-02-05 13:59:35 +00:00
Lars Lehtonen
4333f00a43
runtime/kubernetes: remove unused constants ( #1159 )
2020-02-04 21:02:05 +00:00
7ab3a31ac4
update micro/cli, tidy mod ( #1156 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-03 23:29:44 +00:00
Ben Toogood
a1d5d6831f
Add String to Runtime interface
2020-02-03 15:56:16 +00:00
ben-toogood
1b9cabd654
Update Micro Auth Protocol Buffer to use V2 ( #1155 )
2020-02-03 08:26:57 +00:00
ben-toogood
d621548120
Auth ( #1147 )
...
Implement the Auth interface, with JWT and service implementations.
* Update Auth Interface
* Define Auth Service Implementation
* Support Service Auth
* Add Auth Service Proto
* Remove erronious files
* Implement Auth Service Package
* Update Auth Interface
* Update Auth Interface. Add Validate, remove Add/Remove roles
* Make Revoke interface more explicit
* Refactor serializing and deserializing service accounts
* Fix srv name & update interface to be more explicit
* Require jwt public key for auth
* Rename Variables (Resource.ID => Resource.Name & ServiceAccount => Account)
* Implement JWT Auth Package
* Remove parent, add ID
* Update auth imports to v2. Add String() to auth interface
2020-02-03 08:16:02 +00:00
tpam28
449bcb46fe
New backoff ( #1153 )
...
* new backoff function
* use backoff from util/backoff
* remove reset atemts
* change comment
* fmt
2020-02-02 20:32:55 +00:00
Asim Aslam
079102ea59
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-02-02 19:50:09 +00:00
Asim Aslam
a9d371e727
fatal on command error
2020-02-02 19:49:59 +00:00
Asim Aslam
27efbc8779
Merge pull request #1150 from unistack-org/grpc_race
...
fix map race condition in grpc server
2020-02-01 00:10:46 +00:00
efb59d9709
fix map race condition in grpc server
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-01 02:52:53 +03:00
Asim Aslam
003f00b483
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-30 23:24:54 +00:00
Asim Aslam
0be22c98c6
add tracing
2020-01-30 23:24:46 +00:00
Asim Aslam
bafedf1aad
Merge pull request #1149 from alrs/remove-unused-kubernetes-variable
...
runtime/kubernetes: remove unused name variable
2020-01-30 17:30:43 +00:00
Lars Lehtonen
98d55545fd
runtime/kubernetes: remove unused name variable
2020-01-30 09:25:50 -08:00
Asim Aslam
5f6271b044
Merge pull request #1148 from tpam28/master
...
fix test and description
2020-01-30 17:09:41 +00:00
Evgeniy
87753ad289
format results in TestBacloff
2020-01-30 20:08:03 +03:00
Evgeniy
ffb9da0230
fix test and description
2020-01-30 19:43:03 +03:00
Asim Aslam
50ac642666
Merge pull request #1146 from tpam28/master
...
exponentialBackoff was changed from power function to exponential
2020-01-30 14:35:17 +00:00
Evgeniy
f6fcfcb8fc
exponentialBackoff was changed from power function to exponential function
2020-01-30 17:25:07 +03:00
Asim Aslam
21e0932339
Merge pull request #1144 from unistack-org/v2
...
fix import paths for v2 release
2020-01-30 11:46:29 +00:00
f23638c036
fix import paths for v2 release
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-01-30 14:44:40 +03:00
Asim Aslam
2b1e0a6fd6
go mod tidy
2020-01-30 10:33:40 +00:00
Asim Aslam
0889b814bb
Merge pull request #1143 from crufter/bump-dep
...
Bump dep to fix platform web using new debug.Stats proto fields
2020-01-30 10:31:12 +00:00
Janos Dobronszki
a648c0d99c
Bump dep to fix platform web using new debug.Stats proto fields
2020-01-30 10:27:21 +00:00
Asim Aslam
a291af59c4
Merge pull request #1142 from micro/tracing
...
Fix null tracer bug
2020-01-30 07:55:58 +00:00
Ben Toogood
d9f12731e1
Fix null tracer bug
2020-01-30 07:53:31 +00:00
Asim Aslam
4a838a8210
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-29 23:14:16 +00:00
Asim Aslam
5969cc358e
nats-e => eats
2020-01-29 23:14:05 +00:00
Asim Aslam
9f1a7e1139
Merge pull request #1127 from Allenxuxu/master
...
handle Loader.Load return value error
2020-01-29 22:44:29 +00:00
Asim Aslam
dc257f5066
update to fix tracer
2020-01-29 22:43:40 +00:00
Asim Aslam
49b86c56e3
go fmt
2020-01-29 22:40:43 +00:00
Asim Aslam
1be8258721
fix initialisation
2020-01-29 22:39:31 +00:00
Asim Aslam
b2980aecb7
fix debug handler in proxy
2020-01-29 22:31:57 +00:00
Asim Aslam
de3c3b27b2
Merge pull request #1140 from micro/tracing
...
Tracing by Ben Toogood
2020-01-29 22:28:49 +00:00
Micro
a09eea8d4d
Update the Debug Handler to use the servers tracer
2020-01-29 16:05:58 +00:00
Micro
62c067adcd
Refactor debug/trace ready for Jaeger
2020-01-29 15:45:11 +00:00
Asim Aslam
59f6ca5564
Merge pull request #1139 from alrs/prune-unused-config-reader-func
...
config/reader/json: remove unused newValue()
2020-01-28 19:50:03 +00:00
Lars Lehtonen
895aa896bc
config/reader/json: remove unused newValue()
2020-01-28 11:38:55 -08:00
Asim Aslam
74762edc42
Merge pull request #1138 from printfcoder/master
...
cockroach store supports URL connection string
2020-01-28 17:59:49 +00:00
shu xian
101017a29c
cockroach supports URL connection string
2020-01-29 00:47:41 +08:00
Shu xian
c725b4c797
Merge pull request #3 from micro/master
...
merge
2020-01-29 00:45:27 +08:00
Asim Aslam
1108cc5e91
Merge pull request #1136 from unistack-org/flags
...
update micro/cli to urfave/cli/v2 and fix go-micro
2020-01-26 19:12:06 +00:00
Asim Aslam
6a9f5fac61
fire send in a go routine to prevent blocking other requests
2020-01-25 23:16:00 +00:00
e6a34bcbe7
update micro/cli to urfave/cli/v2 and fix go-micro
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-01-25 15:57:08 +03:00
Asim Aslam
1d00f2f771
add trace handler
2020-01-24 22:02:35 +00:00
Asim Aslam
4a6570a772
trace wrapper
2020-01-24 21:58:29 +00:00
Asim Aslam
a997a86e49
add trace context
2020-01-24 21:44:48 +00:00
Asim Aslam
2d28ff72d7
add trace
2020-01-24 21:32:07 +00:00
Asim Aslam
2b1844971c
go fmt
2020-01-24 21:31:57 +00:00
Asim Aslam
49cc022ca2
add trace to handler
2020-01-24 21:29:29 +00:00
Asim Aslam
8d2dc8a822
trace Read endpoint
2020-01-24 21:24:51 +00:00
Asim Aslam
eeb6944ce5
Merge pull request #1133 from alrs/drop-unused-broker-code
...
broker: drop unused registryKey variable
2020-01-23 21:57:58 +00:00
Lars Lehtonen
add78f2967
broker: drop unused registryKey variable
2020-01-23 12:51:57 -08:00
Shu xian
bd6a5af2b5
Merge pull request #2 from micro/master
...
merge
2020-01-23 22:17:54 +08:00
Asim Aslam
ae08e9c106
check if event is nil
2020-01-23 12:41:22 +00:00
Asim Aslam
77c2a021da
Add event id to router events
2020-01-23 11:44:06 +00:00
Asim Aslam
1c19678d04
Update proto Service => Config
2020-01-23 11:37:54 +00:00
Asim Aslam
6d636b7ab3
whoa bad commit, bad asim
2020-01-22 17:07:56 +00:00
Asim Aslam
009c598049
Change version to latest
2020-01-22 17:03:38 +00:00
Asim Aslam
5cceb00df2
Merge pull request #1131 from micro/router-refactor
...
refactor and cleanup some router code
2020-01-22 16:54:20 +00:00
Asim Aslam
3e24276eb1
fix break
2020-01-22 16:44:34 +00:00
Asim Aslam
29c1076950
refactor and cleanup some router code
2020-01-22 16:33:31 +00:00
Asim Aslam
8dbacb34f8
Merge pull request #1118 from printfcoder/master
...
add mucp for config/source
2020-01-21 22:35:35 +00:00
Asim Aslam
8b306780ee
Merge pull request #1130 from micro/net-noloop
...
avoid connecting to self
2020-01-21 15:05:33 +00:00
Asim Aslam
9f7d374691
avoid connecting to self
2020-01-21 12:36:05 +00:00
Asim Aslam
a18e53f028
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-20 21:31:16 +00:00
Asim Aslam
2208839027
Merge pull request #1129 from alrs/remove-unused-server-var
...
server: remove unused invalidRequest
2020-01-20 18:24:42 +00:00
Lars Lehtonen
7a17a221ff
server: remove unused invalidRequest
2020-01-20 10:09:27 -08:00
Shu xian
8e1ff80b9e
Merge pull request #1 from micro/master
...
merge
2020-01-20 20:08:21 +08:00
shu xian
94bb0f4c08
watch supports path
2020-01-20 18:31:18 +08:00
Allenxuxu
dbe209ebe4
Merge branch 'master' of https://github.com/micro/go-micro
2020-01-20 08:37:34 +08:00
Asim Aslam
fa0d884cfe
fix bad import
2020-01-19 23:31:09 +00:00
Asim Aslam
ed2bd68d28
fix break in router service
2020-01-19 23:22:41 +00:00
Asim Aslam
97928e88f8
stop watcher
2020-01-19 23:15:57 +00:00
Asim Aslam
04cf86070c
close stream
2020-01-19 22:55:57 +00:00
Asim Aslam
9df19e826e
cancel stream
2020-01-19 22:53:56 +00:00
Asim Aslam
3f3c1919f4
strip certain plugins
2020-01-19 17:56:59 +00:00
Asim Aslam
d918694346
reorganise runtime
2020-01-19 17:47:27 +00:00
Asim Aslam
54fb61bba4
Move proto to service/
2020-01-19 17:31:24 +00:00
Asim Aslam
fac75866d9
Move pool to util
2020-01-19 17:30:49 +00:00
Asim Aslam
a47ff65529
remove mock client
2020-01-19 17:24:22 +00:00
Asim Aslam
093bcedfe7
remove http broker
2020-01-19 17:21:55 +00:00
Asim Aslam
7b6d560bec
Update README.md
2020-01-19 13:55:23 +00:00
Asim Aslam
43aa4e23bd
update readme
2020-01-19 13:51:31 +00:00
Asim Aslam
bdd9ec560b
strip sub comments
2020-01-19 13:47:14 +00:00
Asim Aslam
0c03bf064b
only connect broker if there are subscribers
2020-01-19 13:45:28 +00:00
Asim Aslam
9a8c1b7ab8
update broker
2020-01-19 13:35:23 +00:00
Asim Aslam
e1ca40c1fc
go fmt
2020-01-19 13:32:30 +00:00
Asim Aslam
e75b99f89c
go fmt
2020-01-19 13:32:24 +00:00
Allenxuxu
ee7304a795
NewConfig return value error
2020-01-19 16:42:05 +08:00
Allenxuxu
a82fd19209
handle Loader.Load return value error
2020-01-19 16:31:02 +08:00
Asim Aslam
1983d607f3
set nats-e
2020-01-19 01:47:30 +00:00
Asim Aslam
10093a0ea2
set to nats-e
2020-01-19 01:29:00 +00:00
Asim Aslam
fc08a9146c
Add broker comments on server subscribe
2020-01-19 01:16:36 +00:00
Asim Aslam
cafd280718
Default to grpc in registry service for now
2020-01-19 01:13:14 +00:00
Asim Aslam
11b104677a
Shift embedded nats to the default
2020-01-19 00:55:01 +00:00
Asim Aslam
105596a0e5
use mucp server
2020-01-18 20:48:08 +00:00
Asim Aslam
0a37767127
Fix service registration with registry service
2020-01-18 19:53:51 +00:00
Asim Aslam
31e195bac7
strip image pull policy always
2020-01-18 18:37:38 +00:00
Asim Aslam
bdf1d20f4e
extract an ip that can be advertised in embedded nats
2020-01-18 15:39:26 +00:00
shu xian
8d6f82707a
update to standard name convention
2020-01-18 23:16:23 +08:00
Asim Aslam
058fd8adbf
trace 1
2020-01-18 10:20:46 +00:00
Asim Aslam
13d1d2fa08
hard stop if graceful stop fails after 1 second
2020-01-18 10:18:23 +00:00
Asim Aslam
e666d0b807
add missing commit
2020-01-18 02:28:44 +00:00
Asim Aslam
39d7938405
Extract k8s run error
2020-01-18 02:13:24 +00:00
Asim Aslam
65df711b01
move nats local logic
2020-01-18 01:29:53 +00:00
Asim Aslam
fd6eb23307
do not wait to stop
2020-01-18 00:58:27 +00:00
Asim Aslam
fb3927fb8c
Merge pull request #1126 from milosgajdos83/metric-update
...
Update route metric when receiving Sync routes
2020-01-17 18:29:55 +00:00
Milos Gajdos
891af703be
Update route metric when receiving Sync routes
2020-01-17 18:24:36 +00:00
Asim Aslam
474472eedd
Merge pull request #1124 from milosgajdos83/flush-advert-query
...
Use the same logic for advertising routes in Router and Network
2020-01-17 16:49:11 +00:00
Milos Gajdos
23d65145e6
Use the same logic for advertising routes in Router and Network
...
router.Query() allows to query the routes with given router.Strategy.
It uses the same logic as was implemented in flushRoutes but the code
was never updated. This way we are consistent across both router and
network packages.
2020-01-17 16:25:18 +00:00
shu xian
9ea4919b9b
rename mucp source directory to service
2020-01-17 23:53:33 +08:00
Asim Aslam
f78e30770e
Merge pull request #1123 from milosgajdos83/sync-metric
...
Update route metric before sending the Sync message
2020-01-17 15:44:49 +00:00
Milos Gajdos
bf9f319cdf
Update route metric before sending the Sync message
2020-01-17 15:38:28 +00:00
shu xian
ad28b72dd3
rename mucpSource to service
2020-01-17 23:27:41 +08:00
Asim Aslam
8425ae77f8
Merge pull request #1122 from micro/blocking
...
don't block forever
2020-01-17 15:24:03 +00:00
Asim Aslam
d7b9b2713b
don't block forever
2020-01-17 15:23:10 +00:00
Asim Aslam
be788415ad
minor runtime fixes
2020-01-17 14:14:47 +00:00
shu xian
a03791c581
set DefaultClient
2020-01-17 21:32:00 +08:00
Asim Aslam
ee922a3da6
Merge pull request #1121 from milosgajdos83/no-routes-found
...
Continue processing Sync if no routes were returned from router Query
2020-01-17 13:05:47 +00:00
Milos Gajdos
624f1c1980
Continue processing Sync if no routes were returned from router Query
2020-01-17 12:58:13 +00:00
Milos Gajdos
607a226e34
Updated debug logs to make them less verbose
2020-01-17 12:14:56 +00:00
Asim Aslam
bac1bbfd97
Merge pull request #1120 from milosgajdos83/remove-solicit
...
Remove Solicitation from the network
2020-01-16 20:02:05 +00:00
Milos Gajdos
7f9b3b5556
Remove Solicitation from the network
...
Instead, when a new peer is discovered it is sent a sync message i.e. we
do the full sync when discovering peers
2020-01-16 19:43:10 +00:00
Asim Aslam
ba12513199
Merge pull request #1119 from milosgajdos83/sync-best-routes-only
...
Send only best routes via Sync. Only apply best routes.
2020-01-16 18:17:26 +00:00
Milos Gajdos
8fcfbc0d20
Strip unnecessary continue statement
2020-01-16 17:33:53 +00:00
Milos Gajdos
472186c1be
Code consistency. Small bug fix.
2020-01-16 17:04:04 +00:00
Milos Gajdos
60c05bd899
Find the best routes in the routes we would advertise based on Strategy
2020-01-16 16:53:39 +00:00
Milos Gajdos
793e6013e5
Advertise routes with configured strategy. Simplify Sync apply logic
2020-01-16 16:42:23 +00:00
shu xian
071ab7aede
add mucp for config/source
2020-01-17 00:10:15 +08:00
Milos Gajdos
eda8b00f84
Send only best routes via Sync. Only apply best routes.
2020-01-16 16:08:49 +00:00
Asim Aslam
eac2ab3c28
Merge pull request #1117 from micro/scheduler
...
Switch notifier to scheduler
2020-01-16 13:41:13 +00:00
Asim Aslam
76fba34c2f
Merge pull request #1116 from milosgajdos83/query-strategy
...
QueryStrategy to allow querying routes based on Advertising Strategy
2020-01-16 13:39:39 +00:00
Asim Aslam
491a42d352
Switch notifier to scheduler
2020-01-16 13:34:04 +00:00
Milos Gajdos
5e85194a13
QueryStrategy to allow querying routes based on Advertising Strategy
2020-01-16 12:48:36 +00:00
Asim Aslam
689ae7cfc7
Storing tunnel.Session rather than transport.Client
2020-01-16 00:28:58 +00:00
Asim Aslam
19dbd77402
fix net masking in listed routes
2020-01-16 00:12:38 +00:00
Asim Aslam
b194b3adc9
Merge pull request #1115 from micro/net-mask
...
mask the route before sending
2020-01-15 23:13:53 +00:00
Asim Aslam
33a9b3bc17
mask the route before sending
2020-01-15 23:06:58 +00:00
Asim Aslam
6562154573
Fix the next panic
2020-01-15 21:38:37 +00:00
Asim Aslam
b32ebddf85
update nlopes/slack dep
2020-01-15 21:22:07 +00:00
Asim Aslam
b3e3dac975
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-15 21:02:58 +00:00
Asim Aslam
f20e4daa60
fix rand panic
2020-01-15 21:02:53 +00:00
Asim Aslam
f67d87e99d
Merge pull request #1114 from milosgajdos83/network-backward-compatibility
...
Fixed bug:m network.proto backwards compatibility unmarshal
2020-01-15 19:57:57 +00:00
Milos Gajdos
36928b716c
Fixed bug:m network.proto backwards compatibility unmarshal
2020-01-15 19:45:43 +00:00
Asim Aslam
7c7b0ced5f
Merge pull request #1104 from milosgajdos83/network-hackery
...
[WIP] Network hackery
2020-01-14 20:28:32 +00:00
Milos Gajdos
c67ef7e017
Bug fix: skip sending sync message if the peer is not in our graph
2020-01-14 19:37:50 +00:00
Milos Gajdos
dcd925f1e5
Code cleanup; Indentation.
2020-01-14 18:48:42 +00:00
Milos Gajdos
0ea56a5ffe
Fixed tests
2020-01-14 18:22:58 +00:00
Milos Gajdos
821fda41ae
Added Status method to network.Node fixed random segfaults.
2020-01-14 18:12:36 +00:00
Asim Aslam
1d311ab457
Embedded NATS Broker ( #1110 )
...
* if the address is produced by a default route don't hash it
* embedded nats
* fix url parsing
* don't override help
* add ready flag
2020-01-14 13:23:16 +00:00
Asim Aslam
b699d969e4
if the address is produced by a default route don't hash it ( #1108 )
2020-01-14 11:20:13 +00:00
Milos Gajdos
994d371ff1
Removed redundant comments. Add proper PruneStalePeers test.
2020-01-14 10:49:34 +00:00
Milos Gajdos
a91dad04ee
Increment node error count and prune when Max limit is hit
2020-01-13 22:22:12 +00:00
Milos Gajdos
b4261e8cf9
Updated log and comments
2020-01-13 20:14:30 +00:00
Milos Gajdos
efcac3d009
Define tunnel errors
2020-01-13 20:14:30 +00:00
Milos Gajdos
770c7686ba
Fix nasty bug when graph action may not have been executed in some
...
branches
2020-01-13 20:14:30 +00:00
Milos Gajdos
11904e1137
Regular sync with network every 5 minutes. Apply routes before peering.
2020-01-13 20:14:29 +00:00
Milos Gajdos
1e009e52dd
Avoid having the same log statements in initNodes and resolveNodes
2020-01-13 20:14:29 +00:00
Milos Gajdos
bf42c028fb
Added sync message. Refactored connect flow. Adverts are gossipped.
...
This commit adds a Sync message which is sent as a reply to Connect
message. This should in theory speed up convergence of a (re)connecting
node.
We respond to Sync message by sending a peer message back to the peer
origin of the Sync message. We consequently update our routing table and
peer graph with the data sent in via Sync message.
We now gossip advertse to up to 3 randomly selected peers instead of
sending a multicast message to the network.
Equally, Solicitation i.e. full table adverts are gossipped to a
randomly selected peer. If that fails we send a multicast message to the
network.
2020-01-13 20:14:29 +00:00
Milos Gajdos
0a4bd02503
Add RefreshSync method for Sync bookkeeping
2020-01-13 20:14:29 +00:00
Milos Gajdos
63edfaa852
Added Sync message
...
Sync message will be sent between peers when a new node connects/joins
the network
2020-01-13 20:14:29 +00:00
Milos Gajdos
802cc8239a
Send solicit message properly. Updated comments.
2020-01-13 20:14:29 +00:00
Matthew Costa
75b1a62af3
Replace service prefix with FQDN style prefix ( #1107 )
...
* Replace service prefix with FQDN style prefix
According to the k8s documentation, the label and annotation prefixes should be in the format of a FQDN, with dot separated labels of no more than 63 characters. The current label and annotation paramteres are rejected by the k8s api, most likely because they have two forward slashes in them.
* Use go.micro as service and annotation prefix
2020-01-12 14:37:12 +00:00
Maarten Bezemer
50b20413d3
RPC stream client/server mutex fix ( #884 )
...
* Unlock RPC client while actually receiving a message
As receiving a message might block for a long time, unblocking the client allows to let it send messages in the meanwhile without using 'tricks'
* Unlock RPC server while actually receiving a message
As receiving a message might block for a long time, unblocking the client allows to let it send messages in the meanwhile without using 'tricks'
* Protect Close() against race conditions
* Concurrency and Sequence tests
2020-01-12 09:13:14 +00:00
Shu xian
fa5b3ee9d9
config/reader.Values add Set for specific path merge ( #1099 )
...
* add Set for specific path merge
* add Set
* add Del
2020-01-11 20:50:09 +00:00
Asim Aslam
f50a50eeb3
go fmt
2020-01-10 21:54:36 +00:00
Asim Aslam
e1e6199743
normalise runtime service status
2020-01-10 21:54:28 +00:00
Asim Aslam
61dd2b8489
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-10 19:13:59 +00:00
Asim Aslam
6ca298c61d
set default store, fix store options bug, add String method
2020-01-10 19:13:55 +00:00
f4fb923fb2
pass additional context for broker subscribe ( #1105 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-01-10 15:04:15 +00:00
shikbupt
32a2005f6d
add option for web service signal handler ( #1091 )
2020-01-10 14:25:28 +00:00
Asim Aslam
37d1139a57
ensure we close the grpc stream ( #1098 )
...
* ensure we close the grpc stream
* use g.Close
* use closed bool flag for checking connection close
2020-01-09 17:00:14 +00:00
Asim Aslam
a90a74c9e2
Change the store interface to remove variadic args ( #1095 )
2020-01-08 22:23:14 +00:00
Milos Gajdos
78aed5beed
Fixed tunnel race conditions. ( #1094 )
2020-01-08 14:48:38 +00:00
Milos Gajdos
59fccb82ec
Updated comments. Tiny cleanup changes. ( #1093 )
2020-01-08 13:18:11 +00:00
Asim Aslam
048065fe96
support ability to set store, address and namespace via flags and env vars ( #1092 )
2020-01-08 12:11:31 +00:00
Asim Aslam
0b8ff3a8bb
fix grpc json streaming by setting content sub type ( #1089 )
2020-01-07 18:37:34 +00:00
Asim Aslam
1892bd05a5
only add api endpoint metadata if it exists ( #1087 )
2020-01-06 22:22:36 +00:00
Asim Aslam
be6e8a7c78
add store to defaults ( #1086 )
2020-01-06 17:44:32 +00:00
Asim Aslam
df9055f69c
continue to process messages even after the connection is closed
2020-01-03 20:43:53 +00:00
Asim Aslam
649dd235c3
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-03 19:46:24 +00:00
Asim Aslam
1af82df8b1
Check link is grpc
2020-01-03 19:46:14 +00:00
Eagle Wu
7098e59b5c
remove ignore error in method publish ( #1075 )
2020-01-03 17:24:19 +00:00
Shu xian
31362bc331
prevent resource leak ( #1080 )
2020-01-03 13:31:47 +00:00
Asim Aslam
4e2339749c
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-02 21:19:50 +00:00
Asim Aslam
9cecf2e097
make grpc proxy streaming work
2020-01-02 21:11:25 +00:00
Lars Lehtonen
fe9c68238f
runtime/kubernetes: remove unused name variable ( #1078 )
2020-01-02 20:42:46 +00:00
Asim Aslam
225b17559b
fix log streaming
2020-01-02 18:23:43 +00:00
Asim Aslam
e697912ee5
don't panic on nil
2020-01-01 21:56:29 +00:00
Asim Aslam
6358b9277d
don't write anything if theres no data
2019-12-31 22:58:14 +00:00
Asim Aslam
45c986c5f1
don't marshal frame values
2019-12-31 21:36:22 +00:00
Asim Aslam
fa01ff6604
update ctx test
2019-12-31 13:53:48 +00:00
Asim Aslam
fe1e018e8e
update wrapper test
2019-12-31 13:45:49 +00:00
Asim Aslam
60ea537bbc
upper case the metadata
2019-12-31 13:37:29 +00:00
Asim Aslam
488dc31743
log when starting the service
2019-12-31 12:07:52 +00:00
Asim Aslam
b6915f0898
set grpc by default ( #1070 )
2019-12-30 18:33:21 +00:00
Asim Aslam
04dfe4e867
fix breaking test
2019-12-30 17:39:02 +00:00
Asim Aslam
d8fe030a4b
go fmt
2019-12-30 17:29:57 +00:00
Asim Aslam
f40d4578d5
go fmt
2019-12-30 17:29:45 +00:00
Asim Aslam
e0078bbcd5
Remove use of config/cmd in api
2019-12-30 17:29:20 +00:00
Asim Aslam
c145f355dd
Moving to gRPC by default ( #1069 )
...
* Step 1
* Fix the test panics
2019-12-29 21:07:55 +00:00
943445270f
fix registry check issue ( #1067 )
...
fix #1066
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-28 11:11:46 +00:00
Asim Aslam
61cde4a9f4
Kubernetes Registry ( #1064 )
...
* add teh k8s registry
* add k8s reg config/cmd
* go mod update
2019-12-27 20:08:46 +00:00
jamsonzan
22aa7d14b3
support streams pool for grpc ( #1062 )
...
* Update grpc_pool.go
* Update options.go
* Update grpc.go
* Update grpc_pool_test.go
* streams pool for grpc
* use busy list to speed up allocate while pool is very busy
* fix idle bug
2019-12-27 12:25:58 +00:00
Eagle Wu
a09b6729cc
Fix missing recover while occur panic in handler ( #1063 )
2019-12-27 10:53:11 +00:00
Asim Aslam
2fe64001c0
Start runtime services inline
2019-12-24 17:51:30 +00:00
Asim Aslam
14c9c412cd
Move and rename
2019-12-24 17:45:17 +00:00
Asim Aslam
361fdfba04
move around k8s api
2019-12-24 17:42:22 +00:00
Asim Aslam
5c8d1ae2b9
Update k8s log options
2019-12-24 17:33:05 +00:00
Asim Aslam
81e20160f5
reorder
2019-12-23 08:49:53 +00:00
Asim Aslam
ef95b28e3d
add Write method to config source
2019-12-23 08:42:57 +00:00
shikbupt
1781542964
fix etcd LogConfig bug ( #1056 )
2019-12-23 07:29:13 +00:00
Asim Aslam
45208992b5
NewLog
2019-12-20 23:36:16 +00:00
Asim Aslam
847a01df82
Cleanup k8s logs
2019-12-20 23:34:08 +00:00
Jake Sanders
ce33e3b072
Kubernetes logging ( #1054 )
...
* wip
* Implementation of Kubernetes Logger
* Missing file
* Skip test in Travis
2019-12-20 23:16:05 +00:00
Asim Aslam
ae12fd1021
update crap logging
2019-12-19 18:25:22 +00:00
Asim Aslam
95ae2688a2
add formatters
2019-12-19 12:29:03 +00:00
Asim Aslam
2bcfb85613
Add log Format option
2019-12-19 12:20:33 +00:00
Asim Aslam
d52a111735
add requests/errors to stats
2019-12-18 18:36:42 +00:00
Asim Aslam
d4bec24eb7
Add os log buffer
2019-12-18 17:06:29 +00:00
Asim Aslam
2338e7c9d2
Cleanup go mod
2019-12-18 16:12:25 +00:00
Asim Aslam
f0e841595c
move to structured logging
2019-12-18 16:02:11 +00:00
Asim Aslam
a82af19d43
strip newline
2019-12-18 15:19:20 +00:00
Asim Aslam
5d7254e79a
fix the os logger
2019-12-18 15:06:25 +00:00
Asim Aslam
7c21a1b92a
go fmt
2019-12-18 15:06:02 +00:00
Asim Aslam
587f64a87a
Merge pull request #1051 from micro/event
...
publisher => event
2019-12-18 15:04:38 +00:00
Asim Aslam
cb9c4c3aef
publisher => event
2019-12-17 23:05:46 +00:00
Asim Aslam
dda96cb87e
Merge pull request #976 from micro/auth
...
First interface for auth
2019-12-17 21:38:11 +00:00
Asim Aslam
ebae497a72
use service rather than resource
2019-12-17 21:37:20 +00:00
Asim Aslam
515014fbeb
update with resource
2019-12-17 21:27:05 +00:00
Asim Aslam
e9efcbe8dc
strip logger
2019-12-17 18:34:21 +00:00
Asim Aslam
5a52593e66
go fmt
2019-12-17 18:24:00 +00:00
Asim Aslam
c61e12d5ee
add event proto for runtiem
2019-12-17 18:17:32 +00:00
Asim Aslam
c2d59c1f4d
Move logger
2019-12-17 18:16:45 +00:00
Jake Sanders
812fe9e640
Merge pull request #1049 from micro/kubernetes-logging
...
Kubernetes logging
2019-12-17 17:44:24 +00:00
Jake Sanders
f95bccce84
Use UTC in tests
2019-12-17 17:36:01 +00:00
Jake Sanders
81e7edd666
Adhere to new interfaces
2019-12-17 17:24:01 +00:00
Asim Aslam
46fd205eda
rename files
2019-12-17 17:08:38 +00:00
Jake Sanders
c2b307e5bb
Merge branch master of https://github.com/micro/go-micro into kubernetes-logging
2019-12-17 17:08:31 +00:00
Jake Sanders
b7ac62f7d2
Merge branch 'master' of https://github.com/micro/go-micro into kubernetes-logging
2019-12-17 17:06:07 +00:00
Asim Aslam
50d5c6402b
Merge pull request #1048 from micro/logging
...
Move stream to interface
2019-12-17 17:05:13 +00:00
Asim Aslam
d2a3fd0b04
Move stream to interface
2019-12-17 16:56:55 +00:00
Jake Sanders
51f4bc6d56
Add logs to Interface
2019-12-17 16:30:09 +00:00
Jake Sanders
c3607c23e7
Fix after merge
2019-12-17 16:27:17 +00:00
Jake Sanders
34b1c403bb
Merge branch 'master' of https://github.com/micro/go-micro into kubernetes-logging
2019-12-17 16:13:36 +00:00
Asim Aslam
91e057440d
Merge pull request #1047 from micro/decruft-logger
...
Decruft logger
2019-12-17 16:13:20 +00:00
Jake Sanders
53ca742c66
Update the util/kubernetes client to retrieve logs
2019-12-17 16:09:51 +00:00
Asim Aslam
b35dfb1086
fix further breaks
2019-12-17 15:56:49 +00:00
Asim Aslam
d502e2f58a
fix breaks
2019-12-17 15:46:09 +00:00
Asim Aslam
bc30efcf70
Decruft the debug logger interface
2019-12-17 15:38:03 +00:00
Jake Sanders
0415ead504
First commit for Kubernetes logger
2019-12-17 12:11:26 +00:00
Jake Sanders
e95f44d3f8
Move runtime/kubernetes/client to util/kubernetes/client
2019-12-17 11:32:38 +00:00
Asim Aslam
0489ae91e9
Merge pull request #1021 from unistack-org/registry_check
...
add RegisterCheck web server option for internal health checks
2019-12-17 08:49:00 +00:00
Asim Aslam
4e02f444fd
Merge pull request #1024 from unistack-org/server
...
add server Context option to pass own context
2019-12-17 08:48:39 +00:00
Asim Aslam
6027a81f06
Update router comments
2019-12-17 08:28:45 +00:00
Asim Aslam
01f0e70213
add some commented out stuff
2019-12-16 17:37:11 +00:00
Asim Aslam
cb15fadcee
go fmt
2019-12-16 17:36:47 +00:00
Asim Aslam
1c8d15fe4b
Merge pull request #1046 from micro/storefix
...
Fix cockroachdb store implementation
2019-12-16 17:24:53 +00:00
Jake Sanders
55f5937c8b
Remove debug
2019-12-16 17:16:10 +00:00
Jake Sanders
56619f2745
Fix cockroachdb store implemetation
2019-12-16 17:11:13 +00:00
Asim Aslam
0b59e2ce3d
Merge pull request #1028 from Astone-Chou/fix
...
named return value for error defer modify.
2019-12-16 15:39:58 +00:00
Asim Aslam
1ea6390eae
Add proxy string method
2019-12-16 15:18:20 +00:00
Asim Aslam
303adca500
rename postgres to cockroach
2019-12-16 15:09:59 +00:00
Asim Aslam
03700ae6c0
Replace proxy options
2019-12-16 14:55:47 +00:00
Asim Aslam
a1ddfa827e
Merge pull request #1045 from micro/store-options
...
change store options
2019-12-16 14:46:15 +00:00
Asim Aslam
59751c02e6
change store options
2019-12-16 14:38:51 +00:00
Jake Sanders
e8e112144f
Create database should take the name of the database
2019-12-16 14:15:30 +00:00
Asim Aslam
59246e0412
Merge pull request #1044 from micro/store-namespace
...
change use of store namespace/prefix in sql store
2019-12-16 12:20:57 +00:00
Asim Aslam
0131e9468f
change use of store namespace/prefix in sql store
2019-12-16 12:13:18 +00:00
Asim Aslam
d5951f1d7c
Merge pull request #1042 from ZGeomantic/feat-client-mock
...
support ctx as input params, error as output for MockClient.Call
2019-12-15 15:12:17 +00:00
Asim Aslam
f33b562c16
Merge pull request #1043 from jamsonzan/branch0
...
comment
2019-12-15 10:50:52 +00:00
jamsonzan
572fe58314
comment
2019-12-15 15:05:19 +08:00
gemantic
5602b93d7a
support ctx as input params, error as output for MockClient.Call
2019-12-14 10:36:12 +08:00
Asim Aslam
64e438a8d4
Merge pull request #1038 from micro/tun
...
Next level tunnel optimisation
2019-12-13 15:34:03 +00:00
Asim Aslam
b0b6b8fce2
final updates
2019-12-13 15:27:47 +00:00
Asim Aslam
417a05db60
Merge pull request #1039 from xpunch/etcdLogConfig
...
Etcd log config
2019-12-13 09:23:54 +00:00
johnson
11e42aac69
etcd can set log config
...
default log level is info, which will log o log of unused logs
2019-12-13 11:22:05 +08:00
potato
885ba8f905
Merge pull request #6 from micro/master
...
Pull latest go-micro
2019-12-13 11:10:29 +08:00
Asim Aslam
caa74d1b5f
fix build
2019-12-12 23:29:44 +00:00
Asim Aslam
f6b4a9da1c
strip some code
2019-12-12 23:20:31 +00:00
Asim Aslam
74c5102e41
strip a couple things
2019-12-12 21:49:39 +00:00
Asim Aslam
7bd50cd251
fix more broken cruft
2019-12-12 17:10:32 +00:00
Asim Aslam
df728aaddd
remove go routines from tunnel, fire network messages in go routines
2019-12-12 13:34:08 +00:00
Asim Aslam
ae934c19f1
fix tunnel test
2019-12-12 13:04:34 +00:00
Asim Aslam
e260cc4a24
save cruft
2019-12-12 12:27:46 +00:00
Asim Aslam
631faff7b8
Merge pull request #1035 from alrs/fix-grpc-test-goroutines
...
Fix service/grpc Test Goroutines
2019-12-11 16:39:22 +00:00
Lars Lehtonen
fd531349d7
service/grpc: t.Fatal out of TestGRPCTLSService() goroutine
2019-12-11 08:29:23 -08:00
Lars Lehtonen
27bab29e3c
service/grpc: t.Fatal out of TestGRPCService() goroutine
2019-12-11 08:29:14 -08:00
Asim Aslam
27af221fd2
batch metric updates
2019-12-11 15:23:08 +00:00
Asim Aslam
6e28e7a86f
Save current state of the world
2019-12-11 14:37:03 +00:00
Asim Aslam
ff69d46c98
strip some cruft from config/cmd
2019-12-10 18:12:29 +00:00
Asim Aslam
e966944ae5
sort resolved node list in network by lowest priority
2019-12-10 17:57:04 +00:00
Asim Aslam
8da77a3ddc
use fixed port names for runtime k8s
2019-12-10 14:05:05 +00:00
Asim Aslam
8289dbabc4
Merge pull request #1034 from micro/strip-handlers
...
Strip handlers
2019-12-10 11:54:06 +00:00
Asim Aslam
d50f30d743
strip handlers
2019-12-10 11:46:13 +00:00
Asim Aslam
f8533551a4
move debug to trace for network peer refresh
2019-12-10 09:09:24 +00:00
Asim Aslam
7e46ff5d92
strip some more logging down
2019-12-10 09:08:03 +00:00
Asim Aslam
6b1eef5354
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-09 22:56:33 +00:00
Asim Aslam
b29da80539
Move a few things around
2019-12-09 22:56:26 +00:00
Asim Aslam
a725ab2c94
Merge pull request #1032 from jankremlacek/patch-1
...
nlopes/slack dep update to fix broken unmarshal
2019-12-09 21:17:34 +00:00
Jan Kremlacek
1582aa1572
proper go.mod, go.sum
2019-12-09 22:08:57 +01:00
Jan Kremlacek
5352d53346
nlopes/slack dep update to fix broken unmarshal
...
About a month ago Slack introduced the updated structure of RTM messages which resulted in an inability to unmarshal received msg (original issue: https://github.com/nlopes/slack/issues/630 ). It's not an issue of micro itself, but of the github.com/nlopes/slack lib. The fix was already merged into master (https://github.com/nlopes/slack/pull/618 ), but the lib has not been released in any new version.
Thus so I propose to update directly to the commit:
go get github.com/nlopes/slack@d06c2a2b3249b44a9c5dee8485f5a87497beb9ea
The MicroBot does now work now with any Slack client newer than around a month old.
2019-12-09 21:52:28 +01:00
Asim Aslam
7d884eff9d
Merge pull request #1031 from alrs/fix-web-test-goroutines
...
web: fix test goroutines
2019-12-09 18:03:07 +00:00
Lars Lehtonen
c9af88184b
web: fix test goroutine in TestService()
2019-12-09 09:44:14 -08:00
Lars Lehtonen
f25ad35f0a
web: fix test goroutine in TestTLS()
2019-12-09 09:28:42 -08:00
Asim Aslam
55ab44c8be
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-09 09:32:33 +00:00
Asim Aslam
59c1680594
Move Debug to Trace in router
2019-12-09 09:32:17 +00:00
Asim Aslam
b804303aa0
Merge pull request #1029 from Astone-Chou/lint_fix_fix
...
fix tiny error in linting fixes
2019-12-09 07:47:46 +00:00
Astone
55a15ecf12
fix tiny error in linting fixes
2019-12-09 11:18:45 +08:00
Astone
caa1bcf9fe
named return value for error defer modify.
2019-12-09 11:08:21 +08:00
Asim Aslam
e2b2a30668
add net/http/pprof profiler
2019-12-08 20:31:16 +00:00
Asim Aslam
a9be1288d2
Merge pull request #1026 from micro/tun
...
Network & Tunnel refactor
2019-12-08 16:01:46 +00:00
Asim Aslam
679214e598
just return filtered routes
2019-12-08 15:39:45 +00:00
Asim Aslam
6064e1426c
fix some potential go routine leaks
2019-12-08 15:02:54 +00:00
Asim Aslam
d28a868e46
Fix network startup connect
2019-12-08 14:37:17 +00:00
Asim Aslam
398acc67ca
fix broken test
2019-12-08 13:45:24 +00:00
Asim Aslam
ce578800d0
n.initNodes
2019-12-08 12:17:31 +00:00
Asim Aslam
6307d6ba51
further cleanup of tunnel/network
2019-12-08 12:12:20 +00:00
Asim Aslam
283c85d256
done
2019-12-08 00:53:55 +00:00
Asim Aslam
9bd0fb9125
save changes
2019-12-07 23:28:39 +00:00
Asim Aslam
c445aed6b1
Cleanup and speedup network convergence along with direct messaging for connect and solicit
2019-12-07 19:54:29 +00:00
Asim Aslam
1d8c66780e
save working solution
2019-12-06 00:18:40 +00:00
Asim Aslam
219efd27e9
Optimise the multicast to use one session in the tunnel
2019-12-05 23:11:42 +00:00
Asim Aslam
ac9001ac74
advert ttl inline with router table tick
2019-12-05 17:50:32 +00:00
Asim Aslam
2896614595
Merge pull request #1025 from milosgajdos83/router-knobs
...
Changed a few router knobs to avoid storms ⛈
2019-12-05 17:50:02 +00:00
Milos Gajdos
bca12a7003
Changed a few router knobs to avoid storms ⛈
2019-12-05 17:11:17 +00:00
1c5a4c470f
add server Context option to pass own context
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-05 19:37:03 +03:00
Asim Aslam
744b19d625
Merge pull request #1023 from milosgajdos83/dead-code
...
Fixing dead code and go vet moaning
2019-12-05 16:18:13 +00:00
Milos Gajdos
5865e89bed
Fixing dead code and go vet moaning
2019-12-05 16:10:49 +00:00
Asim Aslam
3a10b1cdde
Merge pull request #1022 from milosgajdos83/tunnel-races
...
This PR fixes various tunnel race conditions
2019-12-05 15:59:29 +00:00
Milos Gajdos
5db7514a91
This PR fixes various tunnel race conditions
2019-12-05 15:50:32 +00:00
a957e90ca8
add RegisterCheck web server option for internal health checks
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-05 17:28:11 +03:00
Asim Aslam
18cf025056
Merge pull request #1020 from Allenxuxu/master
...
Avoid excessive memory usage
2019-12-05 11:56:44 +00:00
Allenxuxu
b55b7d6b20
replace map with list
2019-12-05 19:29:48 +08:00
Asim Aslam
26b5d1994a
Merge pull request #1019 from tboerger/no-newlin
...
No newlines at end of log messages
2019-12-05 10:08:16 +00:00
Thomas Boerger
30aec5b872
No newlines at end of log messages
...
Log messages should not end with a new line, this should be entirely
handled by the underlying log library.
Signed-off-by: Thomas Boerger <thomas@webhippie.de >
2019-12-05 10:56:45 +01:00
Asim Aslam
b0626089f3
Merge pull request #1016 from unistack-org/lint
...
lint fixes mostly for prealloc also remove deadcode from grpc client
2019-12-05 08:33:52 +00:00
Asim Aslam
af3d4e595f
in memory stats buffer
2019-12-05 00:08:46 +00:00
Asim Aslam
40c09eed1c
Logs to Log
2019-12-05 00:01:17 +00:00
Asim Aslam
fe46e7a9e9
Logs to Log
2019-12-04 23:58:29 +00:00
Asim Aslam
78647c7027
add timestamp to stats
2019-12-04 23:51:07 +00:00
Asim Aslam
26755f86b1
Merge pull request #1018 from micro/debug-service
...
Debug service
2019-12-04 14:40:58 +00:00
Asim Aslam
898848795b
tab indent
2019-12-04 12:28:16 +00:00
Asim Aslam
24efbe6a41
Move debug handler to service dir
2019-12-04 12:27:30 +00:00
Asim Aslam
97433f716f
add service name to debug proto
2019-12-04 12:02:44 +00:00
Asim Aslam
5200febaea
add stats debug interface
2019-12-04 11:53:20 +00:00
a1eaf9cc20
linting fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-04 00:22:02 +03:00
Asim Aslam
3f8af8c1e0
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-03 20:32:10 +00:00
Asim Aslam
becaeefcba
Revert. DO NOT peer solicit until we know better
2019-12-03 20:32:02 +00:00
7d5bdcf993
fix pointer dereference in memory registry
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 23:05:03 +03:00
Asim Aslam
81a7cf458c
Merge pull request #1013 from unistack-org/linting
...
add golanglint-ci
2019-12-03 16:57:00 +00:00
Asim Aslam
a4ea61334b
Merge pull request #1015 from milosgajdos83/router-race
...
Fix router race condition
2019-12-03 16:55:56 +00:00
Asim Aslam
3fbba9f83d
Merge pull request #1014 from milosgajdos83/memreg-race
...
Fix memory registry race
2019-12-03 16:51:36 +00:00
Milos Gajdos
4a11a4c546
Fix router race condition
2019-12-03 15:22:54 +00:00
Milos Gajdos
265233517e
Fix memory registry race
2019-12-03 14:53:07 +00:00
c581ceb1dc
add golanglint-ci
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 16:31:43 +03:00
Asim Aslam
bb1a1358b7
Merge pull request #1012 from Astone-Chou/lint
...
improve code quality
2019-12-03 13:10:04 +00:00
Astone
29fb58db39
improve code quality
2019-12-03 20:59:02 +08:00
Asim Aslam
b6f0164501
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-03 08:11:46 +00:00
Asim Aslam
2c0801fc1c
couple bug fixes in tunnel
2019-12-03 08:11:36 +00:00
Asim Aslam
34c92f4964
Merge pull request #1011 from Astone-Chou/master
...
optimize: a better way for return error
2019-12-03 07:48:21 +00:00
Astone
f9b900b2ca
optimize: a better way for return error
2019-12-03 12:47:29 +08:00
Asim Aslam
b5d65305db
Merge pull request #1009 from unistack-org/panics
...
recover panics
2019-12-02 23:30:17 +00:00
b8e96f45d4
add recovery in case of panics
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 02:25:40 +03:00
90f9b0d0c9
initialize client options context if not provided
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 01:35:59 +03:00
Asim Aslam
972c0989af
Merge pull request #1008 from micro/connect-fast
...
Optimizations to connect fast
2019-12-02 19:09:56 +00:00
Asim Aslam
5f04fd58ab
optimizations to connect fast
2019-12-02 18:48:19 +00:00
Asim Aslam
da04aa8ae8
Switch to AdvertiseLocal by default
2019-12-02 17:36:20 +00:00
Asim Aslam
62bf0df864
Merge pull request #1007 from micro/ultra-hacks
...
ultra hacks to make debug handler work in proxy
2019-12-02 15:11:56 +00:00
Asim Aslam
91e9c0cb62
ultra hacks to make debug handler work in proxy
2019-12-02 14:55:35 +00:00
Asim Aslam
3356b83f24
register debug handler
2019-12-01 21:04:09 +00:00
Asim Aslam
795ec509fd
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-01 19:43:45 +00:00
Asim Aslam
93d66afe8c
fix that broken logic
2019-12-01 19:43:36 +00:00
Asim Aslam
c840cee404
A variety of fixes to try combat the multicast issue
2019-12-01 19:36:16 +00:00
Milos Gajdos
e48cce6485
Merge pull request #1005 from milosgajdos83/nano-seconds
...
Time resolution change to be in line with debug/handler.Handler
2019-12-01 18:39:59 +00:00
Milos Gajdos
b2ecd93404
Time resolution change to be in line with debug/handler.Handler
2019-12-01 18:33:08 +00:00
Asim Aslam
2928c66624
Merge pull request #1004 from milosgajdos83/debug-logs
...
[WIP] Debug logs
2019-12-01 17:40:40 +00:00
Milos Gajdos
4613a820ca
Small refactoring og logs
...
* log.Write now accepts log.Record
* we stream last 10 records first
* regenerate proto because of the above
2019-12-01 13:16:44 +00:00
Milos Gajdos
ecdadef633
Added hack support for logs streaming cruft
2019-12-01 13:16:44 +00:00
Milos Gajdos
7f1dea72f2
Simplified Logs RPC. Cleaned up code. Added comments.
2019-12-01 13:16:44 +00:00
Milos Gajdos
612f872f76
Server should not close the stream when done
2019-12-01 13:16:44 +00:00
Milos Gajdos
13d2a9ec7a
Register proto handler properly
2019-12-01 13:16:44 +00:00
Milos Gajdos
9fab47ecdb
Added DefaultLog variables
2019-12-01 13:16:44 +00:00
Milos Gajdos
265e8ade05
Embed DebugHandler proto
2019-12-01 13:16:44 +00:00
Milos Gajdos
60e0e81523
Added debug/service to grab the logs from a service
2019-12-01 13:16:43 +00:00
Milos Gajdos
b01357058a
Regenerate proto cruft
2019-12-01 13:16:43 +00:00
Milos Gajdos
7deafbc5ce
Added ReadOptions; Changed proto; Reimplemented Log(er)
2019-12-01 13:16:43 +00:00
Milos Gajdos
9e177be560
Embed logger into debug.Handler
2019-12-01 13:16:43 +00:00
Milos Gajdos
ee9776e7b2
Added debug.Logger interface
2019-12-01 13:16:43 +00:00
Milos Gajdos
3f7f2afc7b
Dont be stupid -- stream does not require pointer.
2019-12-01 13:16:43 +00:00
Milos Gajdos
4e965e4ce5
First commit. Modified proto. Added empty handler method.
2019-12-01 13:16:43 +00:00
Asim Aslam
6f1c30aef5
remove unused value in router
2019-11-30 21:39:03 +00:00
Asim Aslam
00bbb3ac61
revert some protocol changes for now
2019-11-30 21:20:33 +00:00
Asim Aslam
ce1942c578
why didn't we think of this before...single service name for http broker
2019-11-30 21:00:36 +00:00
Asim Aslam
df7169c9f2
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-30 01:16:53 +00:00
Asim Aslam
5e59db4c6d
revert mdns timeout
2019-11-30 01:16:32 +00:00
Asim Aslam
25b3fda25b
Merge pull request #1002 from micro/tun-fix
...
fix bug in the tunnel which causes multicast connections to be closed
2019-11-30 01:16:12 +00:00
Asim Aslam
9678daeafa
fix bug in the tunnel which causes multicast connections to be closed
2019-11-30 01:14:40 +00:00
Asim Aslam
9ed257f151
Merge pull request #1001 from micro/storm
...
Changes for the storm
2019-11-29 17:33:23 +00:00
Asim Aslam
107124e5dc
Changes for the storm
2019-11-29 17:27:29 +00:00
Asim Aslam
ce4acfa892
fix type filtering for k8s runtime
2019-11-29 13:05:18 +00:00
Asim Aslam
6bf4828296
triple the mdns timeout
2019-11-29 13:05:07 +00:00
Asim Aslam
76b4e78a6a
fix command to accept variadic args
2019-11-29 11:55:25 +00:00
Asim Aslam
8b6475b8d4
Merge pull request #1000 from micro/runtime-type
...
Support service types in runtime
2019-11-29 11:46:21 +00:00
Asim Aslam
c3ed83dfba
Support service types in runtime
2019-11-29 11:35:00 +00:00
Asim Aslam
114bc1e18b
Merge pull request #995 from micro/rpc-leak
...
Fix rpc go routine leak
2019-11-27 17:24:19 +00:00
Asim Aslam
af94899b54
Fix rpc go routine leak
2019-11-27 17:12:07 +00:00
Asim Aslam
266b6dbc64
add debug buffer time based access
2019-11-27 13:57:19 +00:00
Asim Aslam
5932dd753c
Merge pull request #981 from unistack-org/subscriber
...
subscriber recovery
2019-11-27 10:28:51 +00:00
86a6328254
subscriber recovery
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-27 13:21:20 +03:00
Asim Aslam
0d33c029a9
Merge pull request #994 from milosgajdos83/validator-regexp
...
Remove validator regexp as its no longer needed.
2019-11-27 08:10:00 +00:00
Milos Gajdos
8ecd2381a4
Remove validator regexp as its no longer needed.
2019-11-26 23:10:45 +00:00
Asim Aslam
7318807dce
Merge pull request #993 from micro/k8s-fixes
...
Add fixes for label selector and skipping things that don't match
2019-11-26 22:32:58 +00:00
Asim Aslam
811275be26
Add fixes for label selector and skipping things that don't match
2019-11-26 22:28:08 +00:00
Asim Aslam
3f3fd38601
Add spec.template.metadata.annotations to the k8s template
2019-11-26 18:14:49 +00:00
Asim Aslam
44dd0b1302
Merge pull request #991 from micro/k8s-update
...
Patch spec template annotations and use event timestmap
2019-11-26 17:38:56 +00:00
Asim Aslam
6475c1f3ad
Patch spec template annotations and use event timestmap
2019-11-26 17:33:41 +00:00
Asim Aslam
deabf0b8c9
fix entry into nil map
2019-11-26 14:56:23 +00:00
Asim Aslam
04ee4b04ad
Merge pull request #990 from micro/buffer
...
Add debug/buffer package as a simple ring buffer
2019-11-26 14:27:39 +00:00
Asim Aslam
2892686c5f
Merge pull request #988 from micro/k8s-update
...
Change the k8s runtime notifier update to get the deployment and upda…
2019-11-26 14:21:42 +00:00
Asim Aslam
8ee31a63f1
Add debug/buffer package as a simple ring buffer
2019-11-26 14:20:45 +00:00
Asim Aslam
4e363da91f
Merge pull request #989 from micro/proto
...
Regenerate the protos
2019-11-26 13:57:49 +00:00
Asim Aslam
8b63df7a98
regenerate the protos
2019-11-26 13:53:33 +00:00
Asim Aslam
b06854b0d5
Change the k8s runtime notifier update to get the deployment and update build
2019-11-26 13:49:52 +00:00
Jake Sanders
39bf71376a
Add some more issue templates ( #987 )
...
* Add some more issue templates
* Update bug_report.md
* Update bug_report.md
2019-11-26 11:48:14 +00:00
Jake Sanders
12d9c5b187
Merge pull request #986 from micro/bug-report-template
...
Create Bug Report Issue Template
2019-11-26 11:25:42 +00:00
Jake Sanders
d2eba3f8f9
Create Bug Report Issue Template
...
To encourage users to provide context with bug reports
2019-11-26 11:17:32 +00:00
Milos Gajdos
19f2f8b161
Merge pull request #982 from xmlking/master
...
go-micro docker now includes unprivileged user
2019-11-26 10:54:18 +00:00
Sumanth Chinthagunta
d41185eb84
go-micro docker now includes unprivileged user
2019-11-25 18:42:24 -08:00
Asim Aslam
c420fa2dec
Merge pull request #979 from milosgajdos83/tunnel-encrypt
...
[WIP] Tunnel encryption
2019-11-25 19:12:24 +00:00
Asim Aslam
db03a564fb
Merge pull request #980 from unistack-org/issue-940
...
grpc client goroutine leak fix
2019-11-25 19:10:34 +00:00
9763820c75
grpc client goroutine leak fix
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-25 22:02:24 +03:00
Milos Gajdos
9095b99f6b
Token has been stripped; Headers are encrypted
2019-11-25 18:56:00 +00:00
Asim Aslam
080363e8c4
The mega cruft proxy PR ( #974 )
...
* the mega cruft proxy PR
* Rename broker id
* add protocol=grpc
* fix compilation breaks
* Add the tunnel broker to the network
* fix broker id
* continue to be backwards compatible in the protocol
2019-11-25 16:31:43 +00:00
Asim Aslam
252667398e
Update the runtime for k8s name formatting and move Get to Read endpoint ( #978 )
...
* Update the runtime for k8s name formatting and move Get to Read endpoint
* strip regex validation
2019-11-25 16:31:14 +00:00
Milos Gajdos
f82c267d81
Encrypt session communication
2019-11-25 15:37:38 +00:00
Milos Gajdos
61fe552ac4
First commit: Outline of tunnel encryption code
2019-11-25 14:58:12 +00:00
Asim Aslam
7013e7467f
Undefined time
2019-11-25 09:33:30 +00:00
Asim Aslam
dbc537007d
First interface for auth
2019-11-25 09:30:26 +00:00
Asim Aslam
95045be83d
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-23 22:50:45 +00:00
Asim Aslam
52ccd900c7
reorder service struct fields
2019-11-23 22:50:13 +00:00
罗泽轩
64a251d69a
improve the syncMap.Iterate test to make it 100% reproducible ( #970 )
...
* improve the syncMap.Iterate test to make it 100% reproducible
* rename store/mocks/Store.go
* rename mocks/store to mock/store
2019-11-23 14:13:17 +00:00
Asim Aslam
cae4148594
Fix platform specific os/process build
2019-11-23 08:25:56 +00:00
Milos Gajdos
38e29c5101
Svc metadata ( #972 )
...
* Added service metadata
* Added metadata to runtime service
* Add Annotations metadata to service metadata
* Add micro/micro as default service owners
* Update runtime/kubernetes/client/kubernetes.go
Change comment
Co-Authored-By: Jake Sanders <i@am.so-aweso.me >
2019-11-22 17:10:00 +00:00
Milos Gajdos
8dc3fb964e
Pass source of service to Deployment API; render templates properly ( #969 )
...
* Pass source of service to Deployment API; render templates properly
* Enable Go modules by default. Honor runtime.Service.Exec
* Make sure you remove go.mod and go.sum
2019-11-21 17:31:13 +00:00
Asim Aslam
212144d658
fix windows compilation error
2019-11-21 11:19:52 +00:00
Milos Gajdos
11d81221cc
Runtime service implementation ( #965 )
2019-11-20 14:54:42 +00:00
Milos Gajdos
55252cbc32
Fix the router test; get rid of time dependency ( #964 )
2019-11-20 14:53:12 +00:00
Asim Aslam
c87a58db0a
add ability to set web icon
2019-11-20 12:43:43 +00:00
49d73faa5f
return error to caller on grpc server request processing ( #962 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-20 10:28:30 +00:00
da6c1be607
dont panic on missing headers in broker event ( #963 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-20 07:55:47 +00:00
Milos Gajdos
94d409b180
Change DefaultImage to micro/go-micro
2019-11-19 20:49:01 +00:00
Milos Gajdos
d6e97c5970
Service.Exec is a slice of strings ( #960 )
2019-11-19 19:36:29 +00:00
Asim Aslam
64d5a528ca
fix broken build
2019-11-19 16:55:33 +00:00
Milos Gajdos
538d3752f9
Added Dockerfile for go-micro ( #959 )
2019-11-19 16:50:31 +00:00
Asim Aslam
fb5b358ae2
fix mdns test
2019-11-19 16:50:16 +00:00
Milos Gajdos
6a0082741c
Packager is now builder ( #958 )
2019-11-19 16:09:43 +00:00
Shu xian
5744050943
api event supports for GET url params ( #956 )
2019-11-18 16:37:45 +00:00
Asim Aslam
168cc06827
increase timeout on travis
2019-11-18 12:58:06 +00:00
Asim Aslam
fa01cadc35
lower the mdns timeout to 10ms ( #955 )
2019-11-18 12:50:51 +00:00
Asim Aslam
342c29de7d
fix TestMemoryRegistryTTLConcurrent test
2019-11-16 21:13:06 +00:00
Asim Aslam
eeed493766
move test data
2019-11-16 18:52:27 +00:00
Asim Aslam
90d7a87914
Move wrapper internally since its not top level relevant
2019-11-16 18:48:24 +00:00
Erik Hollensbe
a1c6cdf193
Now specify HandleSignal as an option to toggle signal handling. ( #948 )
...
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
2019-11-16 11:13:34 +00:00
Erik Hollensbe
bec13a45cd
Attempt to fix the timing error in the memory concurrency test ( #952 )
...
Only shows in travis
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
2019-11-16 11:11:13 +00:00
Erik Hollensbe
4107733453
Memory registry from #801 with additional tweaks ( #951 )
...
* PoC: memory registry using maps instead of slice madness
* Updated proto and handlers. Fixed tests across codebase.
* Implemented ttl pruning for memory registry
* Added extensive memory registry tests
* Squased a bunch of bugs
* Proto indent; memory.Registry.String() returns "memory"
* Write a test to prove memory registry TTLs are busted
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
* Additional memory testing and fixups:
* DefaultTTL removed
* When TTL == 0, it is automatically removed from expiry conditions
* Additional improvements to new tests
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
2019-11-16 10:55:11 +00:00
Milos Gajdos
97c1300f53
[WIP] Micro Runtime ( #947 )
...
* Add Get() and GetOptions.
* Removed watcher. Outline of client. YAML templates
* Added default service and deployment templates and types
* Added API tests and cleaned up errors.
* Small refactoring. Template package is no more.
* Ripped out existing code in preparation to small rework
* Reshuffled the source code to make it organized better
* Create service and deployment in kubernetes runtime
* Major cleanup and refactoring of Kubernetes runtime
* Service now handles low level K8s API calls across both K8s deployment
an service API objects
* Runtime has a task queue that serves for queueing runtime action
requests
* General refactoring
* No need for Lock in k8s service
* Added kubernetes runtime env var to default deployment
* Enable running different versions of the same service
* Can't delete services through labels
* Proto cruft. Added runtime.CreateOptions implementation in proto
* Removed proxy service from default env variables
* Make service name mandatory param to Get method
* Get Delete changes from https://github.com/micro/go-micro/pull/945
* Replaced template files with global variables
* Validate service names before sending K8s API request
* Refactored Kubernetes API client. Fixed typos.
* Added client.Resource to make API resources more explicit in code
2019-11-15 13:41:40 +00:00
mirwaisx
0af8be35bb
-bugfix #889 set body corretly in case of missing content-type ( #950 )
2019-11-15 13:03:45 +00:00
Asim Aslam
a91b3f3e8b
windows specific os tag
2019-11-15 08:20:05 +00:00
Asim Aslam
383658edf2
Fix a runtime deadlock as well as fixing some graceful exiting issues ( #945 )
2019-11-14 14:26:21 +00:00
Asim Aslam
16754a7477
Set theme jekyll-theme-architect
2019-11-14 11:55:07 +00:00
Asim Aslam
58b25d7241
Update CNAME
2019-11-14 11:54:16 +00:00
Asim Aslam
1c7d44282e
Set theme jekyll-theme-minimal
2019-11-14 11:17:02 +00:00
Asim Aslam
8e9eef794f
Set theme jekyll-theme-minimal
2019-11-14 11:15:50 +00:00
Asim Aslam
920c026f14
Create CNAME
2019-11-14 11:01:36 +00:00
Asim Aslam
946c76cb03
Delete CNAME
2019-11-14 11:01:27 +00:00
Asim Aslam
43d11a9b8d
Create CNAME
2019-11-14 10:50:51 +00:00
Asim Aslam
9f481542f3
Fix a codec race by locking the buffers. Include a buffer pool for perf. ( #941 )
...
* Fix a codec race by locking the buffers. Include a buffer pool for perf.
* Read Lock on buffer Read
2019-11-13 11:05:53 +00:00
Asim Aslam
cffa5b6b50
Make use of cloudflare 1.0.0.1 by default to resolve addresses
2019-11-12 15:46:30 +00:00
Asim Aslam
8867539d78
Update FUNDING.yml
2019-11-12 12:35:09 +00:00
Asim Aslam
671408b3a5
Create FUNDING.yml
2019-11-12 12:27:51 +00:00
Lars Lehtonen
bdb62e8ed1
store/postgresql: fix dropped error ( #938 )
2019-11-12 07:54:33 +00:00
Asim Aslam
72522a869a
fix endpoint extractor panic
2019-11-11 17:37:48 +00:00
Asim Aslam
fd5c29addc
Add the ability to only advertise local routes or don't advertise at all ( #932 )
...
* Add the ability to only advertise local routes or don't advertise at all
* Reorder processing to shortcircuit no advertising
2019-11-11 15:28:37 +00:00
Asim Aslam
65b1283459
add metadata.Get(context, key) as short hand
2019-11-11 09:13:02 +00:00
Huang.X
5ffe367cae
fix# Change the Log level and add WarnLevel ( #935 )
...
* fix# Change the Log level and add WarnLevel
* fix# Change the Log level and add WarnLevel
2019-11-11 07:57:13 +00:00
Till Knuesting
5ae3e179b9
preallocated slices ( #934 )
2019-11-11 00:03:51 +00:00
c696a859be
fix data race for server Wait option ( #931 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-09 21:52:41 +00:00
Asim Aslam
174b01ca29
update link in readme
2019-11-09 16:20:54 +00:00
Asim Aslam
c433de80cd
Update go mod
2019-11-09 15:44:52 +00:00
Asim Aslam
f2b4c07a00
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-09 15:37:54 +00:00
Asim Aslam
929ffdcc42
Update readme
2019-11-09 15:37:30 +00:00
Lars Lehtonen
5aa28dfb0d
store/cloudflare: fix dropped error ( #930 )
2019-11-09 15:18:51 +00:00
Asim Aslam
a9e8fc6039
Don't set stream unless its true
2019-11-09 10:32:52 +00:00
Milos Gajdos
0b1e6d7eaf
Simplified k8s API Body watcher code and test. ( #923 )
2019-11-08 15:57:32 +00:00
Milos Gajdos
1ffa289d39
Make build timestamp parsing errors clearer ( #929 )
2019-11-08 15:57:07 +00:00
Milos Gajdos
68419cc024
Patch deployment spec metadata ( #928 )
2019-11-08 14:12:03 +00:00
8227206208
use service id in profile file name ( #925 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-08 09:11:55 +00:00
Milos Gajdos
6f28852e1b
K8s list deployments ( #921 )
...
* Outline of ListDeployments method
* Added implementation of DeploymentList
2019-11-07 07:44:57 +00:00
Asim Aslam
0e3550229b
update readme
2019-11-06 22:04:02 +00:00
Asim Aslam
f9400ba713
update readme
2019-11-06 22:03:35 +00:00
Asim Aslam
ce080d76c6
add debug/profile package ( #920 )
...
* add debug/profile package
* set service+version for profile
2019-11-06 19:36:04 +00:00
Asim Aslam
254045e9f3
Remove go routines for mdns watcher and cache registry ( #919 )
2019-11-06 15:49:40 +00:00
Milos Gajdos
b84134581c
Flap detection vol2 ( #915 )
...
* We now purge flapping routes before regular tick processes them
* Updated comments
* Record the timestamp as soon as you receive the event
* Set route Address to routing table test
* Fixed a bunch of deadlocks. Added basic Router tests.
2019-11-05 17:44:24 +00:00
Till Knuesting
f67c5e779f
preallocated slices ( #917 )
2019-11-05 17:43:12 +00:00
Milos Gajdos
4a694c9d02
Change flap detection configuration ( #914 )
...
* Change flap detection configuration
* Make PenaltyHalfLife a float, not int 🤦♂️
* Lower event suppression to 200
2019-11-04 19:01:52 +00:00
Till Knuesting
24b8d2a315
preallocating slices ( #904 )
...
* preallocated some slices when size is known
* gofmt
* gofmt
2019-11-04 10:33:53 +00:00
Asim Aslam
2f3c251b00
Recovery should be < 500
2019-11-03 17:10:00 +00:00
Asim Aslam
c1b0a968ae
Augment the router penalty and decay as a hack fix ( #912 )
...
* Augment the router penalty and decay as a hack fix
* increase recovery cost
2019-11-03 16:29:10 +00:00
Asim Aslam
81e9298be6
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-03 16:12:24 +00:00
Asim Aslam
45cd14c4b7
Suppress log messages
2019-11-03 16:12:17 +00:00
罗泽轩
8579c8b321
avoid deadlock in syncMap.Iterate ( #909 )
...
Previously, when syncMap iterates a list of records which have the same
content in different order, a deadlock might happen. By enforcing a certain
order, the deadlock can be avoided.
2019-11-03 08:18:48 +00:00
罗泽轩
bd37e67839
fix a typo in sync/lock/memory package ( #910 )
2019-11-03 08:17:01 +00:00
Asim Aslam
d3151f1f0f
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-02 23:13:10 +00:00
Asim Aslam
c45ea62ea8
Do not deregister services in the monitor unless Reap is called
2019-11-02 23:13:01 +00:00
Yang Shi
c14bf5dc4e
improve the log of panic recovering ( #906 )
2019-11-02 23:08:54 +00:00
Asim Aslam
292da40886
runtime handler/proto placeholder
2019-11-02 22:54:35 +00:00
Milos Gajdos
6f7702a093
[WIP] K8s update and runtime package changes ( #895 )
...
* First commit: outline of K8s runtime package
* Added poller. Added auto-updater into default runtime
* Added build and updated Poller interface
* Added comments and NewRuntime that accepts Options
* DefaultPoller; Runtime options
* First commit to add Kubernetes cruft
* Add comments
* Add micro- prefix to K8s runtime service names
* Get rid of import cycles. Move K8s runtime into main runtime package
* Major refactoring: Poller replaced by Notifier
POller has been replaced by Notifier which returns a channel of events
that can be consumed and acted upon.
* Added runtime configuration options
* K8s runtime is now Kubernetes runtime in dedicated pkg. Naming kung-fu.
* Fix typo in command.
* Fixed typo
* Dont Delete service when runtime stops.
runtime.Stop stops services; no need to double-stop
* Track runtime services
* Parse Unix timestamps properly
* Added deployments into K8s client. Debug logging
2019-11-02 13:25:10 +00:00
Asim Aslam
a94a95ab55
Merge pull request #908 from hb-chen/fix-907
...
fix-907
2019-11-02 08:59:14 +00:00
Hobo86
e8d2f207d8
fix-907
...
web service need modify registry service nodes while register interval
2019-11-02 16:39:56 +08:00
Asim Aslam
bd1918900e
Merge pull request #901 from micro/sqlstore
...
Implementation of PostgreSQL for micro store
2019-11-01 15:48:47 +00:00
Asim Aslam
cf3af68e31
Merge pull request #903 from tegk/gofmt
...
used gofmt with -s flag on whole project
2019-11-01 15:25:53 +00:00
Jake Sanders
15e3b9b4c0
Let people connect with just a hostname
2019-11-01 15:16:05 +00:00
Asim Aslam
107a7ab07f
Merge pull request #902 from micro/runtime-panic
...
Fix panic caused when ctrl+c a non started service
2019-11-01 15:12:33 +00:00
Asim Aslam
e9dfccc616
Fix panic caused when ctrl+c a non started service
2019-11-01 15:08:01 +00:00
tegk
f88518d994
used gofmt with -s flag on whole project
2019-11-01 15:07:53 +00:00
Jake Sanders
ee35fe61af
update go.mod for postgres
2019-11-01 14:13:47 +00:00
Jake Sanders
dee63b2b2c
Implementation of postgres store
2019-11-01 14:13:21 +00:00
Asim Aslam
0aa01b2ebf
Output the build error in plugin
2019-11-01 08:33:14 +00:00
Asim Aslam
f089a89e8a
Merge pull request #897 from micro/route-filtering
...
add ability to filter routes based on headers
2019-11-01 08:15:23 +00:00
Asim Aslam
174fbde049
add ability to filter routes based on headers
2019-10-31 22:34:06 +00:00
Asim Aslam
967d7ecda7
fix runtime panic
2019-10-31 22:30:21 +00:00
Asim Aslam
fb76755684
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-10-31 17:22:45 +00:00
Asim Aslam
cf593e7c50
fix link panic
2019-10-31 17:22:38 +00:00
Asim Aslam
74286c2939
Merge pull request #893 from yandd/master
...
fix rcache ttl
2019-10-30 21:31:08 +00:00
yandd
f9c639af4e
fix rcache ttl
2019-10-30 14:01:51 +08:00
Asim Aslam
dab0f3223f
Add Update/List endpoints to runtime
2019-10-29 12:29:21 +00:00
Asim Aslam
d89256d8d5
add network resolver record priority field
2019-10-28 15:31:46 +00:00
Asim Aslam
99b410c81b
fix metadata test
2019-10-25 23:28:43 +01:00
Asim Aslam
92b7d2db3b
Rename to Merge
2019-10-25 23:27:59 +01:00
Asim Aslam
20c6c36bc4
Merge pull request #883 from xmlking/master
...
PatchContext method added
2019-10-25 23:23:37 +01:00
Asim Aslam
1f626a55ed
Merge pull request #887 from micro/collapse-routes
...
hash address based on service name + node address
2019-10-25 23:12:56 +01:00
Asim Aslam
b42d242ec1
hash address based on service name + node address
2019-10-25 23:06:49 +01:00
Asim Aslam
51922c1763
Refresh route metrics in the proxy
2019-10-25 22:46:43 +01:00
Sumanth Chinthagunta
1c6b85e05d
AppendContext with overwrite flag
2019-10-25 08:27:28 -07:00
Asim Aslam
e85863d6cc
Merge pull request #886 from micro/tunnel-error
...
Don't error where the connection is not unicast
2019-10-25 15:48:09 +01:00
Asim Aslam
5d7bf53f78
don't error where the connection is not unicast
2019-10-25 15:41:37 +01:00
Asim Aslam
44c0f1946d
Merge pull request #882 from micro/link-state
...
A few changes for the network / tunnel link state
2019-10-25 14:28:43 +01:00
Asim Aslam
1c9ada6413
Reorder setChannel method
2019-10-25 14:24:37 +01:00
Asim Aslam
c170189efb
We need the message back to set the link
2019-10-25 14:22:38 +01:00
Asim Aslam
3831199600
Use best link in tunnel, loop waiting for announce and accept messages, cleanup some code
2019-10-25 14:16:22 +01:00
Sumanth Chinthagunta
1f658cfbff
adding PatchContext - this will create new context with original + patch metadata
2019-10-24 17:51:54 -07:00
Asim Aslam
f26d470db1
A few changes for the network / tunnel link state
2019-10-24 17:51:41 +01:00
Asim Aslam
f5b8a12106
Merge pull request #880 from milosgajdos83/tunnel-sessionlink
...
Make sure we pick some link when Dialling
2019-10-24 16:14:32 +01:00
Milos Gajdos
494eb13534
Make sure we pick some link when Dialling
2019-10-24 16:07:31 +01:00
Asim Aslam
4db1e09798
change options to be trimmed down
2019-10-23 23:12:45 +01:00
Asim Aslam
232c8ac7a1
More cleanup of store cf
2019-10-23 23:10:44 +01:00
Asim Aslam
68d0efbeaa
Move api types in cf store
2019-10-23 22:57:11 +01:00
Asim Aslam
70aaca9876
further cleanup
2019-10-23 22:54:55 +01:00
Asim Aslam
3ce71e12ff
Don't recall vals everywhere
2019-10-23 22:51:08 +01:00
Asim Aslam
fb3d729681
sync map uses store list
2019-10-23 22:35:28 +01:00
Asim Aslam
d65658c890
Update options usage in store/api
2019-10-23 22:31:36 +01:00
Asim Aslam
3fc04f4dff
fixup some acme related things
2019-10-23 22:15:15 +01:00
Asim Aslam
82f94c7861
Change store.Sync to store.List
2019-10-23 22:05:39 +01:00
Asim Aslam
ecac392dbe
unexport api response/message in cloudflare store
2019-10-23 21:54:37 +01:00
Asim Aslam
4e5a568063
races, race conditions everywhere
2019-10-23 21:24:31 +01:00
Asim Aslam
87de2ecaa0
Merge pull request #876 from milosgajdos83/peerlink-route-metric
...
Peerlink route metric
2019-10-23 20:31:21 +01:00
Milos Gajdos
4f1dd3f965
Fixed a small messup when printing logs
2019-10-23 20:01:45 +01:00
Milos Gajdos
71122836b8
Use event.Route.Link for getting the route metrics
2019-10-23 19:55:01 +01:00
Milos Gajdos
b67be88952
Check for local links and empty gateways
2019-10-23 19:48:26 +01:00
Asim Aslam
83b232ae26
Merge pull request #879 from micro/cloudflareexpiry
...
Throw away cloudflare-go library and reimplement workers KV
2019-10-23 17:44:13 +01:00
Milos Gajdos
776284b187
Make sure you dont overflow MaxInt64
2019-10-23 17:42:04 +01:00
Jake Sanders
53ee4ee482
goodbye cloudflare-go
2019-10-23 17:33:20 +01:00
Milos Gajdos
35729092e0
Unexport network.Message
2019-10-23 17:32:45 +01:00
Jake Sanders
4f5db08238
Remove cloudflare-go and reimplement workers KV
2019-10-23 17:31:15 +01:00
Milos Gajdos
68789af4ea
Prune peerlinks of pruned nodes
2019-10-23 17:29:03 +01:00
Milos Gajdos
b3d4a7f740
If no link found, return max possible value
2019-10-23 16:51:22 +01:00
Milos Gajdos
f4f178c130
Set metric on egress. Increment metric on ingress.
2019-10-23 16:51:22 +01:00
Milos Gajdos
1ff65e140a
Change router.Route metric to int64. Set the route metric properly
2019-10-23 16:51:22 +01:00
Milos Gajdos
326156671d
Set route metric to link Length
2019-10-23 16:51:22 +01:00
Milos Gajdos
6353b2b894
Keep track of peer links
2019-10-23 16:51:22 +01:00
Asim Aslam
caca93f65b
Merge pull request #877 from micro/tun-delay
...
Tunnel Delay and link buffers
2019-10-23 16:49:18 +01:00
Asim Aslam
bf4a73d5c0
Close the socket in the link
2019-10-23 16:39:26 +01:00
Asim Aslam
fe180148a1
rearrange where we account for errors and data sent
2019-10-23 16:15:39 +01:00
Asim Aslam
842fc01568
add send/recv queues for link
2019-10-23 16:05:21 +01:00
Asim Aslam
d4832e8f34
Remove consul registry ( #818 )
2019-10-23 15:53:28 +01:00
Asim Aslam
5ac5865154
add comment
2019-10-23 10:55:53 +01:00
Asim Aslam
f07a6ac29b
Merge pull request #875 from micro/tun-measure
...
Measure roundtrip times on link
2019-10-22 21:20:57 +01:00
Asim Aslam
d64f8c665e
add rate measure
2019-10-22 19:38:29 +01:00
Asim Aslam
407694232a
Measure roundtrip times on link
2019-10-22 18:43:09 +01:00
Asim Aslam
418b8648bb
Merge pull request #874 from micro/tun-metrics
...
Add placeholders for link metrics
2019-10-22 17:03:07 +01:00
Asim Aslam
85e273afa5
reorder methods
2019-10-22 17:02:22 +01:00
Asim Aslam
ab9fa20a50
Update comments
2019-10-22 16:53:47 +01:00
Asim Aslam
4fddd69229
Add placeholders for link metrics
2019-10-22 16:50:00 +01:00
Asim Aslam
317cf76566
Merge pull request #872 from micro/round-robin
...
Round robin routes we've sorted by metric
2019-10-22 11:58:44 +01:00
Asim Aslam
f792fac1cc
Round robin routes we've sorted by metric
2019-10-22 11:53:49 +01:00
Asim Aslam
a89d1edc41
fix divide by zero bug
2019-10-19 08:11:05 +01:00
Asim Aslam
d3140c0fc2
Merge pull request #867 from milosgajdos83/rlock-mess
...
Avoid recursive RLock()
2019-10-18 11:35:08 +01:00
Milos Gajdos
3d5d9be02a
Avoid recursive calls to RLock()
...
Topology calls itsel recursively invoking RLock. This, according to go
documentation is wrong. This commit moves the body of Topology function
to a non-thread safe unexported function to keep locsk at check!
2019-10-18 11:26:43 +01:00
Asim Aslam
5c38f38dd9
No need to lock here since Topology read locks and makes copies
2019-10-18 11:26:43 +01:00
Asim Aslam
63fd8b9d1b
Merge pull request #864 from micro/strip-topic
...
strip topic from http broker subscribe service name
2019-10-17 18:48:46 +01:00
Asim Aslam
3aedea4c56
strip topic from http broker subscribe service name
2019-10-17 18:37:37 +01:00
Asim Aslam
0da9dff077
Merge pull request #863 from micro/certmagice2e
...
E2E tests for certmagic ACME provider
2019-10-17 16:42:33 +01:00
Jake Sanders
05774f2c76
Don't touch go.mod
2019-10-17 16:35:09 +01:00
Jake Sanders
4885bba2ac
E2E tests for certmagic ACME provider
...
* Actually set the CA
* Fix the certmangic.storage interface to return the correct error type
* Write an e2e test for certmagic against the let's encrypt staging CA
2019-10-17 16:31:02 +01:00
Asim Aslam
9d559848c2
Merge pull request #862 from milosgajdos83/tunnel-cleanup
...
Cleanup of tunnel.Dial(). Clean up network channel processors
2019-10-16 21:19:30 +01:00
Milos Gajdos
2ae583ce94
Cleanup of tunnel dial code. Clean up network channel processors
2019-10-16 20:44:22 +01:00
Asim Aslam
7c1e22b607
Merge pull request #861 from micro/certmagicstorage
...
Distributed storage for certmagic
2019-10-16 14:10:02 +01:00
Jake Sanders
7d2afa34a0
Implementation and tests for certmagic.Storage interface
2019-10-16 12:58:14 +01:00
Jake Sanders
a6e95d389f
Implementation of certmagic storage using micro's store and sync packages
2019-10-15 19:32:20 +01:00
Asim Aslam
b1d5dc20fa
Merge pull request #860 from micro/tunnel-mode
...
Tunnel mode
2019-10-15 16:14:38 +01:00
Asim Aslam
be5093798b
Use DialMode/ListenMode
2019-10-15 16:08:38 +01:00
Asim Aslam
3759c9c091
Merge pull request #859 from milosgajdos83/handle-channel-conn-errors
...
Handle tunnel session Accept errors gracefully
2019-10-15 16:05:19 +01:00
Milos Gajdos
4936a2e1a5
Exponential backoff for failed accept connections
2019-10-15 15:58:33 +01:00
Asim Aslam
ca934951ad
Use multicast on network/control channels
2019-10-15 15:57:13 +01:00
Asim Aslam
ca18089382
Fix bugs related to needing to send Broadcast
2019-10-15 15:55:08 +01:00
Asim Aslam
7b1f5584ab
Tunnel mode
2019-10-15 15:40:04 +01:00
Milos Gajdos
fed5af68e6
Handle Accept errors gracefully.
...
Originally when Accept fails we log the error and let the program flow
continue. This can lead to us spawning handling connection go routines
on nil connections which in turn leads to Go panics.
2019-10-15 15:07:28 +01:00
Asim Aslam
fdfeb437f9
Merge pull request #856 from micro/cloudflare
...
Cloudflare Store implementation for workers KV
2019-10-15 14:29:34 +01:00
Jake Sanders
a46133f059
cloudflare workers KV Store implementation
2019-10-15 12:35:45 +01:00
Jake Sanders
9bd0a8f3b5
Update go.mod for cloudflare
2019-10-15 12:35:20 +01:00
Asim Aslam
44b794722e
rcache becomes cache
2019-10-14 22:39:26 +01:00
Asim Aslam
247249050b
move mutex to memory
2019-10-14 22:38:22 +01:00
Asim Aslam
b1fed01752
add network name to node
2019-10-14 22:26:23 +01:00
Asim Aslam
df1e680256
Merge pull request #854 from micro/lock-http
...
Lock http
2019-10-14 22:01:25 +01:00
Asim Aslam
854b01c20c
Add acquire/release to http path
2019-10-14 21:52:18 +01:00
Asim Aslam
745299bce5
add http lock implementation
2019-10-14 21:39:25 +01:00
Asim Aslam
607fdb3fcb
Merge pull request #852 from micro/mutex
...
add mutex lock implementation
2019-10-14 15:23:59 +01:00
Asim Aslam
a1342c23fb
add mutex lock implementation
2019-10-14 15:17:25 +01:00
Asim Aslam
1cea2f5bba
Merge pull request #850 from micro/acmetypo
...
TLS -> ToS
2019-10-14 12:10:55 +01:00
Jake Sanders
a1b4786682
TLS -> ToS
2019-10-14 12:04:49 +01:00
Asim Aslam
b701da6d69
Merge pull request #849 from micro/connect-init
...
Connect init
2019-10-13 18:40:11 +01:00
Asim Aslam
f77df51f60
Support reconnects
2019-10-13 18:36:22 +01:00
Asim Aslam
d6c6e7815e
Spaces not tabs
2019-10-13 12:40:53 +01:00
Asim Aslam
01492997ea
add Network.Init method
2019-10-13 12:38:13 +01:00
Asim Aslam
174f1b857c
Network handler moves to service/handler
2019-10-13 12:37:56 +01:00
Asim Aslam
5029d80e68
add Network.Connect handler and network/metadata fields to node
2019-10-13 12:37:39 +01:00
Asim Aslam
b59c5a4488
move network handler to service/handler
2019-10-13 12:37:13 +01:00
Asim Aslam
f7f65b82e6
Cleanup registry handler/service
2019-10-13 12:23:13 +01:00
Asim Aslam
2e47fdc6f5
Check the node map to avoid dupes in resolved nodes
2019-10-12 20:26:06 +01:00
Asim Aslam
18ea19a122
Regenerate go.mod
2019-10-12 12:04:55 +01:00
Asim Aslam
4d75b936f8
Merge pull request #846 from theophanous/master
...
fix: bumped quic-go version to v0.12.1
2019-10-11 18:24:45 +01:00
Peter Theophanous
62aaa72715
fix: bumped quic-go version to v0.12.1
2019-10-11 18:16:56 +01:00
Asim Aslam
8c344ed55b
Merge pull request #839 from theophanous/master
...
bumped quic-go version to v0.12.1
2019-10-11 17:26:48 +01:00
Peter Theophanous
db843c8d87
reset orig
2019-10-11 17:15:20 +01:00
Asim Aslam
dd7677e6cc
Add nil check for acme provider
2019-10-11 16:52:57 +01:00
Asim Aslam
a4f0dd8939
Merge pull request #845 from micro/certmagic
...
Implementation of CertMagic as the ACME provider
2019-10-11 16:52:21 +01:00
Jake Sanders
591e87448b
Travis doesn't let us bind :443
2019-10-11 16:47:12 +01:00
Jake Sanders
09a202ccf0
Merge branch 'master' of https://github.com/micro/go-micro into certmagic
2019-10-11 16:25:28 +01:00
Jake Sanders
723c17fdd7
Implementation of certmagic as an ACME provider
2019-10-11 16:25:15 +01:00
Jake Sanders
9bd96d4cc1
Update go.mod for ACME changes
2019-10-11 16:24:25 +01:00
Asim Aslam
9bfe4d9bf7
Merge pull request #844 from micro/store
...
Store service implementation
2019-10-11 14:49:44 +01:00
Asim Aslam
76eee089e3
Add store service client
2019-10-11 14:44:42 +01:00
Asim Aslam
cfa2b668e2
go fmt
2019-10-11 14:44:34 +01:00
Asim Aslam
a96f6adf07
store handler implementation
2019-10-11 14:08:50 +01:00
Asim Aslam
49fe5d9fd5
Merge pull request #843 from milosgajdos83/dead-code
...
Clean up dead tunnel code
2019-10-11 11:15:29 +01:00
Milos Gajdos
21469a0427
Clean up dead tunnel code
...
Running go vet on tunnel package returns:
$ go vet ./...
./default.go:929:2: unreachable code
./link.go:104:2: unreachable code
./listener.go:184:2: unreachable code
./session.go:241:2: unreachable code
2019-10-11 11:02:45 +01:00
Asim Aslam
e351e9518f
Merge pull request #842 from milosgajdos83/cache-status
...
Check cache status error
2019-10-11 10:55:35 +01:00
Milos Gajdos
fc89c9831e
heck cache status error
2019-10-11 10:47:42 +01:00
Peter Theophanous
5e5d57d954
bumped quic-go version to v0.12.1
2019-10-10 22:23:33 +01:00
Asim Aslam
98e1f2c2d3
Merge pull request #838 from micro/etcd
...
Use etcd serializable option
2019-10-10 19:22:10 +01:00
Asim Aslam
59a3e7d4f4
Use etcd serializable option
2019-10-10 19:16:31 +01:00
Asim Aslam
1be6ec9b3c
Merge pull request #837 from milosgajdos83/prune-dead-router-peers
...
Prune routes from routers that are not in your peer graph
2019-10-10 16:12:56 +01:00
Milos Gajdos
f6931f3da7
Prune routes from routers that are not in your peer graph
2019-10-10 15:28:27 +01:00
Asim Aslam
b2f99a27b7
Visit all the nodes in flatten
2019-10-10 14:35:11 +01:00
Asim Aslam
1f5ebf330d
Merge pull request #836 from micro/prune-address
...
Prune the peer address
2019-10-10 11:43:19 +01:00
Asim Aslam
0dee11e006
Prune the peer address
2019-10-10 11:25:28 +01:00
Asim Aslam
b55018eaa1
Merge pull request #833 from orbli/patch-1
...
Add dialoptions and calloptions
2019-10-10 07:40:48 +01:00
orb li
77108771db
Conceptual deliverable
2019-10-10 13:55:16 +08:00
Asim Aslam
5a6e73d4a8
Merge pull request #835 from milosgajdos83/router-strategy
...
Router strategy
2019-10-09 19:18:59 +01:00
Milos Gajdos
7a4bff4e9f
Changed names of some variables.
2019-10-09 19:08:24 +01:00
Milos Gajdos
d5ce96da24
Avoid locking on reading strategy for now
2019-10-09 18:19:48 +01:00
Milos Gajdos
837597fe6f
Make Optimal strategy default. Collapse routing tables based on strategy
2019-10-09 17:24:38 +01:00
Milos Gajdos
96e564e402
Add router advertisement Strategy option to router.
2019-10-09 17:24:38 +01:00
Asim Aslam
fe94237448
Update router querying method ( #834 )
...
* Add address to router query options. Drop Query interface for QueryOptions
* Cleanup isMatch function
* Update network proto
2019-10-09 17:13:52 +01:00
Jake Sanders
107b7419b7
Start abstracting away the ACME provider ( #830 )
...
* Start abstracting away the ACME provider
* Move ACME to interface with sub-package implementations
* Addressing comments
* Library -> Provider
* Missed a couple of Library -> Provider
* One more Library -> Provider
* remove constants
2019-10-09 16:42:05 +01:00
orb li
226d55d752
Adding dependency
2019-10-09 16:48:45 +08:00
orb li
88ef785127
Add dialoptions and calloptions
2019-10-09 15:56:39 +08:00
Asim Aslam
44473f954f
Merge pull request #829 from milosgajdos83/limit-net-connections
...
Limit the number of outbound connections to MaxConnections
2019-10-08 15:56:45 +01:00
Milos Gajdos
fe5846603a
Only limit the number of nodes returned by network resolver.
2019-10-08 15:48:52 +01:00
Milos Gajdos
61800fb7d7
Fix typo: MaxCconnections -> MaxConnections
2019-10-08 15:15:50 +01:00
Milos Gajdos
ec2fbde979
Limit the number of outbound connections to MaxConnections
...
This commit also fixes control channel shenanigans:
- recover error in control channel accept
2019-10-08 14:48:04 +01:00
Asim Aslam
b886dd4b8f
Merge pull request #828 from micro/net-lookup
...
Use dns resolver on peer nodes
2019-10-08 10:36:04 +01:00
Asim Aslam
94adeebed4
Use dns resolver on peer nodes
2019-10-08 09:25:23 +01:00
Asim Aslam
d043ca15c1
Merge pull request #827 from micro/resolver
...
Add dns net.LookupHost resolver!
2019-10-08 09:08:34 +01:00
Asim Aslam
ad823d5177
Add dns net.LookupHost resolver!
2019-10-08 09:04:13 +01:00
Asim Aslam
89d71417f5
Merge pull request #825 from milosgajdos83/net-chan-nodes
...
Recover net channel Accept() errors. Init tunnel nodes before tunnel.Connect()
2019-10-07 20:29:45 +01:00
Milos Gajdos
9d9683b6f9
Recover net channel Accept errors. Init tunnel nodes before Connect
2019-10-07 19:09:04 +01:00
Asim Aslam
0edcd5c8dc
Merge pull request #824 from micro/tunnel
...
wait for response on accept message
2019-10-07 18:33:00 +01:00
Asim Aslam
2e1432d5dc
wait for response on accept message
2019-10-07 18:29:49 +01:00
Asim Aslam
e4f8b5de70
Merge pull request #823 from micro/list-services
...
Support listing full service info in etcd
2019-10-07 16:15:30 +01:00
Asim Aslam
e9dcff49e0
Support listing full service info in etcd
2019-10-07 16:11:52 +01:00
Asim Aslam
fa6590f999
Merge pull request #822 from micro/service
...
Add Name to Service
2019-10-07 08:43:07 +01:00
Asim Aslam
fd8a0fb2f5
Update internal service definition
2019-10-07 08:34:15 +01:00
Asim Aslam
b594547408
Add service Name
2019-10-07 08:32:28 +01:00
Asim Aslam
2c00e726b6
Decode and hash the existing node
2019-10-06 13:43:41 +01:00
Asim Aslam
68a3fc7996
Merge pull request #820 from micro/etcd-reg
...
Fix etcd registry lease processing and suppression
2019-10-06 10:03:38 +01:00
Asim Aslam
2fb2d7145e
Fix etcd registry lease processing and suppression
2019-10-06 09:54:26 +01:00
Asim Aslam
6fe9f2a958
Merge pull request #815 from micro/broker
...
Add broker service implementation
2019-10-04 17:23:29 +01:00
Asim Aslam
86984a8a8a
Extend the stream timeout
2019-10-04 16:44:21 +01:00
Asim Aslam
cfb846ee7e
Fix race in cache
2019-10-04 16:40:21 +01:00
Asim Aslam
e36960612a
go fmt
2019-10-04 16:40:16 +01:00
Asim Aslam
04320d69ff
Fix and comment broker service
2019-10-04 16:30:03 +01:00
Asim Aslam
c4b6d0f3a8
fix major deadlock in registry cache
2019-10-04 16:29:56 +01:00
Asim Aslam
3c6b6553fb
Use peerAddress as the thing to listen on
2019-10-03 18:35:54 +01:00
Asim Aslam
d5658ab0b0
Merge pull request #816 from micro/net-advertise
...
Advertise your peer address as advertised address
2019-10-03 17:42:11 +01:00
Asim Aslam
2244eb8597
Advertise your peer address as advertised address
2019-10-03 17:37:29 +01:00
Asim Aslam
05eacd74c8
Add logging for broker handler
2019-10-03 17:30:37 +01:00
Asim Aslam
b80654bf7e
Add broker service to config/cmd
2019-10-03 16:22:26 +01:00
Asim Aslam
0941a0f031
Merge pull request #814 from milosgajdos83/etcd-port
...
Append a port to address if it does not exist
2019-10-03 16:20:43 +01:00
Asim Aslam
4de346920f
Add broker service implementation
2019-10-03 16:19:02 +01:00
Milos Gajdos
b8815dff14
Append a port to address if it does not exist
2019-10-03 16:16:25 +01:00
Asim Aslam
b1163b9dee
Fix breaking import
2019-10-03 11:26:24 +01:00
Asim Aslam
af5d7a3420
Move the remaining consul cruft to go-plugins
2019-10-03 11:22:35 +01:00
Asim Aslam
b5f33b2aaa
Rename Dump to Sync
2019-10-03 09:56:25 +01:00
Asim Aslam
a9c85eda68
Merge pull request #813 from micro/store
...
Move out consul sync/lock and store. Move data/store to store
2019-10-03 09:51:21 +01:00
Asim Aslam
b5ca40a91a
Move out consul sync/lock and store. Move data/store to store
2019-10-03 09:46:20 +01:00
Asim Aslam
b81bb07afc
Merge pull request #812 from micro/gossip
...
Remove gossip registry
2019-10-03 09:36:14 +01:00
Asim Aslam
8d2b12258f
Remove gossip registry
2019-10-03 09:29:48 +01:00
Asim Aslam
31026da2a1
Update etcd.go
...
Use /micro/registry as the etcd key prefix
2019-10-02 20:33:59 +01:00
Asim Aslam
1129803bcb
Merge pull request #810 from milosgajdos83/etcd
...
First commit to add etcd registry support
2019-10-02 20:27:38 +01:00
Milos Gajdos
25148af44c
First commit to add etcd registry support
2019-10-02 18:56:53 +01:00
Asim Aslam
36675aff1e
Merge pull request #809 from micro/log-prefix
...
Add ability to set log prefix
2019-10-02 17:47:27 +01:00
Asim Aslam
b6db0d2663
Add ability to set log prefix
2019-10-02 17:42:34 +01:00
Asim Aslam
2370fb1209
Set gateway to node address rather than id
2019-10-02 15:52:31 +01:00
Asim Aslam
519e8a7213
Merge pull request #808 from micro/net-address
...
Hash the network address
2019-10-02 15:27:07 +01:00
Asim Aslam
308424488b
Hash the network address
2019-10-02 15:22:44 +01:00
Asim Aslam
5d77ce9e9b
Rename rcache file to cache
2019-10-02 12:35:20 +01:00
Asim Aslam
9eb6262168
Merge pull request #807 from unistack-org/fixup
...
some spelling fixes in memory and gossip registry
2019-10-02 10:47:59 +01:00
b722798caa
some spelling fixes in memory and gossip registry
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-10-02 03:54:04 +03:00
Asim Aslam
0cf7b70423
Merge pull request #806 from milosgajdos83/go-mod-shrink
...
Update go.mod
2019-10-01 20:13:26 +01:00
Milos Gajdos
03b8ceab5c
Update go.mod
2019-10-01 19:33:23 +01:00
Asim Aslam
e8a53610f1
Update go mod to use 1.13
2019-10-01 19:09:29 +01:00
Asim Aslam
e48155118f
Update go mod
2019-10-01 18:55:03 +01:00
Asim Aslam
6477c3afff
Bump travis
2019-10-01 18:33:26 +01:00
Asim Aslam
57647772c8
Merge pull request #790 from milosgajdos83/memreg-ttl
...
[WIP] Memory registry TTL expiry
2019-09-30 15:35:57 +01:00
Milos Gajdos
4b73ac9dc5
Simplified code. Small bug fix the used to lead to multi-registry loop.
2019-09-30 12:48:59 +01:00
Milos Gajdos
3f3f1272b3
Turn regular logs to Debug logs; annotate with Registry "tag"
2019-09-30 12:48:59 +01:00
Milos Gajdos
859ecb1872
Dont set default TTL. Stop tracking nodes with no TTL
2019-09-30 12:48:59 +01:00
Milos Gajdos
204c7d1fcf
Fixed options bug and proto indenting
2019-09-30 12:48:59 +01:00
Milos Gajdos
8417361bce
Set registry TTL to seconds, not the nanoseconds
2019-09-30 12:48:59 +01:00
Milos Gajdos
d85ca7abd2
Set registry TTL properly via protobuf Options
2019-09-30 12:48:59 +01:00
Milos Gajdos
e973bfaa25
Add TTL options to memory registry.
2019-09-30 12:48:59 +01:00
Milos Gajdos
27bd9581bf
Refresh TTL; prune expired nodes.
2019-09-30 12:48:59 +01:00
Milos Gajdos
16c7b3a390
Added Registry TTL to memory registry. Tracking node lifetimes.
2019-09-30 12:48:59 +01:00
potato
f933457cc1
Merge pull request #5 from micro/master
...
pull request from go-micro
2019-09-30 17:22:51 +08:00
Asim Aslam
219d759f1d
Merge pull request #802 from micro/services
...
Add Network.Services handler
2019-09-30 07:55:03 +01:00
Asim Aslam
b90871c241
Add Network.Services handler
2019-09-30 07:51:13 +01:00
Asim Aslam
1322fb0d9d
Merge pull request #800 from kordenlu/master
...
fix rcache node overwrited issue
2019-09-30 07:17:46 +01:00
lubaoquan
0eb69e4f9a
Undo go.mod go.sum change,fixes https://github.com/micro/go-micro/issues/793
2019-09-30 10:57:35 +08:00
lubaoquan
1ed73d0f91
fixes https://github.com/micro/go-micro/issues/793
2019-09-30 10:38:53 +08:00
lubaoquan
866631df1d
fixes https://github.com/micro/go-micro/issues/793
2019-09-30 10:36:43 +08:00
lubaoquan
d5e962c4a8
fixes https://github.com/micro/go-micro/issues/793
2019-09-29 10:27:38 +08:00
Asim Aslam
9ec27392de
Merge pull request #799 from milosgajdos83/go1.13-fix-tests
...
Fix tests to make go-micro work on Go 1.13
2019-09-27 18:14:54 +01:00
Milos Gajdos
de1d9122ea
Remove 1.13 support because go-quic reasons nobody understands
2019-09-27 17:19:38 +01:00
Milos Gajdos
87a5e85062
Add 1.13 support. Fix tests to enable 1.13 support
2019-09-27 17:14:24 +01:00
Asim Aslam
da572041ca
Merge pull request #797 from RichardLindhout/patch-1
...
Do not log error when EOS is being written on an EOF socket
2019-09-27 15:18:35 +01:00
Richard Lindhout
a725998c0a
Update rpc_server.go
2019-09-27 16:01:16 +02:00
Richard Lindhout
f3b723ca44
Do nog log error when EOS is being written on an EOF socket
2019-09-27 15:02:21 +02:00
Asim Aslam
e1bb4d7379
Merge pull request #795 from milosgajdos83/advert-events
...
Rather than append to list of events just keep the last event
2019-09-26 18:13:28 +01:00
Milos Gajdos
2d7975a7ce
Rather than append to list of events just keep the last event for a route hash
2019-09-26 17:54:55 +01:00
Asim Aslam
8b77d62ed4
Merge pull request #794 from micro/hash
...
Don't shutdown old nodes in mdns registry
2019-09-26 16:50:17 +01:00
Asim Aslam
ef7bb46884
Don't shutdown old nodes in mdns registry
2019-09-26 16:46:09 +01:00
Asim Aslam
06975f64b7
Merge pull request #792 from milosgajdos83/router-fixes
...
Simplified table code. Fixed event dedup
2019-09-26 12:53:40 +01:00
Milos Gajdos
a4c04d8f50
Only emit Update event if a route was updated/added
2019-09-26 12:45:10 +01:00
Milos Gajdos
b2577e6022
Update log statement
2019-09-26 12:19:00 +01:00
Milos Gajdos
77f3e7ef48
Simplified table code. Fixed event dedup.
2019-09-26 11:56:30 +01:00
Asim Aslam
6f2a8298ef
Fix router log messages
2019-09-25 20:29:25 +01:00
Asim Aslam
9e33637213
Do not log send/recv body
2019-09-25 20:24:56 +01:00
Asim Aslam
99dbed0b67
Merge pull request #789 from micro/cache
...
Preserve cache in the face of failure
2019-09-25 19:49:21 +01:00
Asim Aslam
2b8210a106
Preserve cache in the face of failure
2019-09-25 19:44:46 +01:00
Asim Aslam
dfcedbab1e
In case of non 200 response return error
2019-09-25 16:53:06 +01:00
Asim Aslam
140e3d576c
Merge pull request #788 from micro/stream
...
Revert to creating new connections for stream
2019-09-25 15:26:09 +01:00
Asim Aslam
afa1f50435
Revert to creating new connections for stream
2019-09-25 15:21:21 +01:00
Asim Aslam
cb22136a35
Merge pull request #787 from micro/solicit
...
only solicit the first time seeing a peer
2019-09-25 14:35:09 +01:00
Asim Aslam
ae40553bad
only solicit the first time seeing a peer
2019-09-25 14:30:35 +01:00
Asim Aslam
855cd5ecf4
Merge pull request #786 from micro/net
...
Do not embed proxy/router/tunnel
2019-09-25 13:00:36 +01:00
Asim Aslam
f23c6d91ba
Do not embed proxy/router/tunnel
2019-09-25 12:56:52 +01:00
Asim Aslam
c3b430af53
Merge pull request #785 from micro/link
...
Keep track of errors and delete beyond error count > 3
2019-09-25 12:36:23 +01:00
Asim Aslam
3d2bf7d4f6
Add log message
2019-09-25 12:36:07 +01:00
Asim Aslam
6c2b9d7636
Keep track of errors and delete beyond error count > 3
2019-09-25 12:14:09 +01:00
Asim Aslam
be5799b09f
Merge pull request #783 from micro/service
...
Add flag for registry service client
2019-09-25 11:14:17 +01:00
Asim Aslam
7fe64192a7
Add flag for registry service client
2019-09-25 11:09:19 +01:00
Asim Aslam
624d37cf13
Merge pull request #781 from milosgajdos83/hash-reg-service
...
Emit memory registry event only when it actually happens
2019-09-25 07:44:55 +01:00
Milos Gajdos
1f23c8a85a
Emit memory registry event only when it actually happens
2019-09-25 01:58:28 +01:00
Asim Aslam
96e79c4498
Add runtime output
2019-09-24 19:00:11 +01:00
Asim Aslam
1b08036a0b
add create options
2019-09-24 18:32:35 +01:00
Asim Aslam
c52651c4d0
Move runtime.Start to be non blocking
2019-09-24 18:05:51 +01:00
Asim Aslam
9f880a1215
Merge pull request #780 from milosgajdos83/registry-event
...
[WIP] Registry event
2019-09-24 14:48:38 +01:00
Milos Gajdos
39755721d0
Fix proto formatting
2019-09-24 14:39:51 +01:00
Milos Gajdos
ccda1d3559
Remove rpc Sync method from registry handler
2019-09-24 10:41:48 +01:00
Milos Gajdos
61ee436cc4
Added Sync RPC call; it's identical to ListServices for now
2019-09-23 21:08:31 +01:00
Milos Gajdos
04a5d884da
Move global vars to the top of the src file: conventions
2019-09-23 20:48:25 +01:00
Milos Gajdos
0ec1b840fd
Add registry event to registry package
2019-09-23 20:48:25 +01:00
Asim Aslam
71ab35e055
Merge pull request #778 from micro/register-interval
...
Set register ttl and interval by default
2019-09-23 18:04:52 +01:00
Asim Aslam
fa0d020556
Set register ttl and interval by default
2019-09-23 17:59:34 +01:00
Asim Aslam
d8dc713e2d
Fix the http resolver to use micro.mu url
2019-09-23 17:50:53 +01:00
Asim Aslam
d38c8b23f2
Merge pull request #777 from micro/net-nodes
...
Set rpc methods as Network.Graph/Nodes/Routes
2019-09-23 15:47:49 +01:00
Asim Aslam
4260913b45
Set rpc methods as Network.Graph/Nodes/Routes
2019-09-23 15:41:05 +01:00
Asim Aslam
ac5eb5da47
Remove fmt
2019-09-22 15:31:07 +01:00
Asim Aslam
2434c7b2a7
replace version format
2019-09-22 15:21:22 +01:00
Asim Aslam
9fbc88a60f
Provide a way to get status now
2019-09-20 17:55:02 +01:00
Asim Aslam
444cc59250
Ensure transport matches for monitoring service
2019-09-20 17:20:15 +01:00
Asim Aslam
95e4ed8ee9
Merge pull request #775 from micro/proxy-watcher
...
Fix the proxy watcher
2019-09-20 16:36:00 +01:00
Asim Aslam
4eb1aaae85
Fix the proxy watcher
2019-09-20 16:25:29 +01:00
Asim Aslam
46450ba507
Merge pull request #773 from micro/net-hash
...
Only hash address if its a local route
2019-09-20 10:50:35 +01:00
Asim Aslam
f13887f604
Only hash address if its a local route
2019-09-20 09:40:55 +01:00
Asim Aslam
66769e671f
Merge pull request #772 from micro/peers
...
Replace Nodes with Peers
2019-09-19 16:53:17 +01:00
Asim Aslam
7e05d2c440
Replace Nodes with Peers
2019-09-19 16:32:15 +01:00
Asim Aslam
0abeb3f660
Merge pull request #771 from milosgajdos83/peers-race
...
Remove data race; Unlock once done pruning/deleting
2019-09-19 11:59:03 +01:00
Milos Gajdos
a38482ffcb
Remove data race; Unlock once done pruning/deleting
2019-09-19 11:53:13 +01:00
Asim Aslam
ee74e26582
Merge pull request #769 from micro/advertise
...
allow setting advertise address
2019-09-18 19:06:24 +01:00
Asim Aslam
6222bc2a1e
only set tunnel address if advertise is blank
2019-09-18 19:04:22 +01:00
Asim Aslam
05e62a2b95
allow setting advertise address
2019-09-18 18:56:02 +01:00
Asim Aslam
cdbab3df66
Merge pull request #766 from milosgajdos83/hash-service
...
Hash the service before advertising it to the network.
2019-09-17 18:39:17 +01:00
Milos Gajdos
38d6ffdf9a
Hash the service address before advertising it to the network.
2019-09-17 18:34:06 +01:00
Asim Aslam
e586763301
Merge pull request #761 from milosgajdos83/delete-peer-gw
...
Delete dead peer [gateway] routes
2019-09-17 16:54:35 +01:00
Milos Gajdos
3201b4cb36
Gateway is now set to node Id, hence we prune peer.id Gateway
2019-09-17 16:31:33 +01:00
Asim Aslam
837cb4fc11
Merge pull request #763 from milosgajdos83/gateway-addressing
...
Fix gateway addressing
2019-09-17 16:27:35 +01:00
Milos Gajdos
21dc7bcccf
Fix gateway addressing
...
- Set Gateway as node.ID when advertising
- Set server.Address as node.ID to listen on
- Set server.Advertise as node.Address
2019-09-17 16:11:02 +01:00
Asim Aslam
a811b4be3d
Merge pull request #762 from micro/net-address
...
Set node address to tunnel address
2019-09-17 15:44:13 +01:00
Asim Aslam
9147d378bc
Set node address to tunnel address
2019-09-17 15:40:00 +01:00
Asim Aslam
b7b968ad74
remove the funding thing
2019-09-17 12:43:20 +01:00
Asim Aslam
8e8a4c1a9d
Update FUNDING.yml
2019-09-17 12:42:50 +01:00
Asim Aslam
bc29164f77
Update FUNDING.yml
2019-09-17 12:39:41 +01:00
Asim Aslam
e161b2fa84
Create FUNDING.yml
2019-09-17 12:36:36 +01:00
Milos Gajdos
a72a2f717d
Prune stale nodes in the whole topology.
2019-09-16 19:22:55 +01:00
Milos Gajdos
2599ee8591
Prune routes routable via dead node.
2019-09-15 12:17:12 +01:00
Asim Aslam
364c5a4861
Immediately start services
2019-09-14 08:07:36 -07:00
Asim Aslam
c8a675249d
Merge pull request #759 from micro/runtime
...
update runtime to function
2019-09-13 22:01:52 -07:00
Asim Aslam
0cdfc7b9ea
add create/delete/start/stop to runtime
2019-09-13 21:58:03 -07:00
Asim Aslam
0fc4c180ee
update runtime to function
2019-09-13 21:33:14 -07:00
Asim Aslam
e5f6480f8a
Merge pull request #757 from milosgajdos83/empty-advert
...
Skip processing Advert which carries no events
2019-09-13 17:29:36 -07:00
Milos Gajdos
ccb6778f7f
Skip processing Advert which carries no events
2019-09-13 20:46:14 +01:00
Asim Aslam
ef86c9625b
Merge pull request #750 from milosgajdos83/node-peers
...
[WIP] Neighbour is now Peer. Peer is a node in network topology.
2019-09-13 12:00:16 -07:00
Asim Aslam
b23ee58865
Update default.go
2019-09-13 11:55:53 -07:00
Milos Gajdos
323a72be34
Small refactoring; Split horizon loop break.
2019-09-13 18:46:24 +01:00
Milos Gajdos
d72e91fb38
Unlock on return from network.Connect
2019-09-13 03:31:58 +01:00
Milos Gajdos
b91c3147e7
Node API allows us to drop all network locks
...
Network locks are now needed only when accessing client map. node map
access is serialied with the node mutex.
2019-09-13 03:03:56 +01:00
Milos Gajdos
ef91d836eb
Implement Solicit method for handler.Router
2019-09-13 03:03:56 +01:00
Milos Gajdos
77c6c9781b
getProtoTopology has been replaced by PeersToProto
...
This helps us remove redundant code across node and handler
2019-09-13 03:03:56 +01:00
Milos Gajdos
fa4ff8921e
Removed redundant lock. Simplified proto topology
2019-09-13 03:03:56 +01:00
Milos Gajdos
d6be91e8af
Changed RPC methods. Changed Network interface.
...
* Nodes/Topology removed from public methods from Network interface
* Peers() returns max depth 3 topology
* handler.Topology rpc endpoint removed
* handler.Peers rpc endpoint accept "depth" param to return max depth peers
2019-09-13 03:03:56 +01:00
Milos Gajdos
588484c3bf
Fixed some races. Added more tests.
2019-09-13 03:03:56 +01:00
Milos Gajdos
d58eb51976
Code change to make Solicit router.proto message
2019-09-13 03:03:55 +01:00
Milos Gajdos
35cf2a5739
Make topology test more generic
2019-09-13 03:03:55 +01:00
Milos Gajdos
2dfbe93d65
Added more node tests. Small refactoring of Netowkr and handler.
2019-09-13 03:03:55 +01:00
Milos Gajdos
16fcf1fbda
Nodes, Peers and Topology methods for node
...
Topology accepts an argument to define the depth of the topology
requested from the network. proto definitions have been modified
accordingly, too.
2019-09-13 03:03:55 +01:00
Milos Gajdos
cbce5490d7
Lock the Nodes method properly when collecting them.
2019-09-13 03:03:55 +01:00
Milos Gajdos
4c709f7ac1
Write Lock() advert update: we are writing into peers map here
2019-09-13 03:03:55 +01:00
Milos Gajdos
baf4c05663
Send solicit message to ControlChannel
2019-09-13 03:03:55 +01:00
Milos Gajdos
195c6a8c90
Neighbour is now peer. Neighbourhood is Peers. Small refactor.
2019-09-13 03:03:54 +01:00
Milos Gajdos
f91d0408ab
Moved node implementation into dedicated source file
2019-09-13 03:03:54 +01:00
Milos Gajdos
eec780aaa7
Update neighbours when neighbour message is received
2019-09-13 03:03:54 +01:00
Milos Gajdos
f0a1031e97
Adding new peers up to given depth. Outline of node gaph Update
2019-09-13 03:03:54 +01:00
Asim Aslam
a6668ae057
Move delete link log message
2019-09-12 17:40:47 -07:00
Asim Aslam
af5421c2cf
Merge pull request #756 from micro/tunnel
...
Missing fixes for the tunnel
2019-09-12 17:17:33 -07:00
Asim Aslam
2406ef9999
Missing fixes for the tunnel
2019-09-12 17:12:49 -07:00
Asim Aslam
af585d3a57
Merge pull request #755 from micro/tunnel
...
Add tunnel fixes for quic and keepalive
2019-09-12 16:35:53 -07:00
Asim Aslam
97cf478f71
Add tunnel fixes for quic and keepalive
2019-09-12 16:22:43 -07:00
Asim Aslam
ec6a30be37
Links above Dial/Listen in interface
2019-09-11 12:49:27 -07:00
Asim Aslam
634c55e2d7
Merge pull request #753 from micro/link
...
Option to set Link
2019-09-11 12:16:07 -07:00
Asim Aslam
cb0de43dba
add link status
2019-09-11 12:12:11 -07:00
Asim Aslam
63d535aea9
Add link field to session
2019-09-11 12:07:43 -07:00
Asim Aslam
6819386e05
Remove dead link code
2019-09-11 12:00:55 -07:00
Asim Aslam
988603f87e
Merge pull request #752 from printfcoder/master
...
recover gPRC handler if panic
2019-09-11 09:10:30 -07:00
Asim Aslam
9ca7d90f11
link crufT
2019-09-11 07:11:40 -07:00
Asim Aslam
6ec32805d0
Don't allow socket close while writing h2 headers
2019-09-10 18:26:12 -07:00
Shu Xian
c1c173dfe5
recover handler if panic
2019-09-11 00:40:40 +08:00
Shu Xian
ce18de2647
Merge branch 'master' of github.com:micro/go-micro
2019-09-11 00:39:19 +08:00
Asim Aslam
3e3bbe3fd0
Merge pull request #751 from micro/link
...
Move link to tunnel/
2019-09-10 08:16:35 -07:00
Asim Aslam
b5eea02f7a
Move link to tunnel/
2019-09-10 08:12:28 -07:00
Asim Aslam
08c6f60b0f
Merge pull request #746 from micro/plugin
...
Support plugin loading
2019-09-10 05:38:10 -07:00
Asim Aslam
065c7d5616
fix plugin init
2019-09-10 05:32:49 -07:00
Asim Aslam
a5ce3e32da
Support plugin loading on service.Init
2019-09-09 20:17:36 -07:00
Asim Aslam
3bfbcd5e6a
Add default plugin loader
2019-09-09 19:43:13 -07:00
Asim Aslam
b6c6b13277
Support plugin loading
2019-09-09 19:09:28 -07:00
Asim Aslam
04b31d374c
Merge pull request #745 from micro/registry-service
...
Add service registry
2019-09-09 13:05:46 -07:00
Asim Aslam
e828a099c5
Merge pull request #744 from micro/mdns-domain
...
Use .micro domain for mdns
2019-09-09 11:59:37 -07:00
Asim Aslam
2c16c7e62f
Fix build breaks
2019-09-09 09:25:47 -07:00
Asim Aslam
1f44d7a4a1
Add registry handler
2019-09-09 09:20:17 -07:00
Asim Aslam
b076ef906a
Add service registry
2019-09-09 08:57:57 -07:00
Asim Aslam
c669a2b155
Use .micro domain for mdns
2019-09-09 05:11:25 -07:00
Asim Aslam
48a3e51aca
Merge pull request #742 from micro/unlock
...
unlock before sending the message to avoid deadlock
2019-09-06 17:06:39 +01:00
Asim Aslam
e8aaca27d3
unlock before sending the message to avoid deadlock
2019-09-06 16:57:17 +01:00
Asim Aslam
5596407144
Merge pull request #741 from milosgajdos83/list-nodes
...
List nodes now works properly. Send solicit message on ControlChannel
2019-09-06 15:18:25 +01:00
Milos Gajdos
7971b1b7f9
Remove debug logs
2019-09-06 15:12:23 +01:00
Milos Gajdos
dafbacbdcb
Properly handle the list of the nodes. Send solicit on ControlChannel
2019-09-06 15:09:49 +01:00
Asim Aslam
df5657dcd1
Merge pull request #737 from milosgajdos83/buffered-advertchan
...
Lets make advert channel buffered so we don't lose adverts
2019-09-05 19:19:03 +01:00
Milos Gajdos
bb595c85b2
Lets make advert channel buffered so we don't lose adverts
2019-09-05 19:05:47 +01:00
Asim Aslam
bc6187ea89
Merge pull request #734 from micro/tunnel
...
Update tunnel to send discovery on connect and multicast messages. An…
2019-09-05 18:19:37 +01:00
Asim Aslam
ed1faa7a5c
Add a discover ticker, announce on connect and refactor
2019-09-05 18:13:02 +01:00
Asim Aslam
1d9298ae2b
Merge pull request #736 from milosgajdos83/solicit-routes
...
Solicit routes when new node is discovered
2019-09-05 18:08:49 +01:00
Milos Gajdos
dddfb6f878
Fixed typos and simplified map iteration
2019-09-05 17:59:14 +01:00
Milos Gajdos
ec354934e3
Move Errors to separate init block
2019-09-05 17:44:47 +01:00
Milos Gajdos
b01c8e06e0
Update error name to ErrClientNotFound
2019-09-05 17:43:59 +01:00
Asim Aslam
97b1071f7e
Merge pull request #735 from huangzhhui/patch-1
...
Fixed the link of Chinese documentation
2019-09-05 17:43:03 +01:00
Asim Aslam
1527a84297
Shorten multicast discovery
2019-09-05 17:40:41 +01:00
Milos Gajdos
5ddfd911ba
Replace send message code by one network method
2019-09-05 17:18:16 +01:00
黄朝晖
2310ee424c
Update README.zh-cn.md
2019-09-05 23:52:54 +08:00
Milos Gajdos
2522d8cb96
Send solicit message when new neighbour is discovered
2019-09-05 16:04:44 +01:00
Asim Aslam
d198765c6c
Put back close of listener
2019-09-05 15:23:19 +01:00
Asim Aslam
1840b5bd74
Update tunnel to send discovery on connect and multicast messages. Announce as broadcast
2019-09-05 15:16:11 +01:00
Milos Gajdos
9161b20d6b
Add Solicit method to router interface
...
When calling Solicit, router lists all the routes and advertise them
straight away
2019-09-05 13:23:33 +01:00
Asim Aslam
a1ba1482c5
Only set link if not multicast
2019-09-05 07:41:19 +01:00
Asim Aslam
d0761e0a1b
Merge pull request #733 from milosgajdos83/freeze-graph
...
Freeze network graph when building full network topology
2019-09-05 07:21:53 +01:00
Milos Gajdos
4b1a7abb42
Freeze network graph when building full network topology
...
Also added some comments and debug logs
2019-09-05 00:16:22 +01:00
Asim Aslam
e33bd17894
Merge pull request #732 from micro/massive-cruft
...
Fix massive cruft in tunnel dial to set the link on discovered
2019-09-04 20:27:07 +01:00
Asim Aslam
cc5d811a83
add comment to tunnel link selection
2019-09-04 20:19:53 +01:00
Asim Aslam
e15389febb
Fix massive cruft in tunnel dial to set the link on discovered
2019-09-04 20:18:26 +01:00
Asim Aslam
6d63c3777f
Merge pull request #731 from micro/tunnel
...
Add some fixes
2019-09-04 18:53:48 +01:00
Asim Aslam
d8a1b47954
Remove lock from link
2019-09-04 18:48:43 +01:00
Asim Aslam
b9a2f719a0
Add some fixes
2019-09-04 18:46:20 +01:00
Asim Aslam
46a9767648
Merge pull request #730 from milosgajdos83/advert-lastseen
...
Update node.lastSeen properly. Set node.lastSeen when processing advert
2019-09-04 18:13:43 +01:00
Milos Gajdos
dd9f42e3b9
Update lastSeen timestamp properly. Set lastSeen when processing advert
2019-09-04 18:02:13 +01:00
Asim Aslam
f2c8492c77
Merge pull request #729 from micro/tunnel
...
Tunnel session management and unicast/multicast
2019-09-04 16:25:38 +01:00
Asim Aslam
407381912b
Don't try discover on multicast, don't block existing sessions on listen
2019-09-04 15:55:37 +01:00
Asim Aslam
d559ce9da2
Provide Links() method in Tunnel
2019-09-04 15:41:57 +01:00
Asim Aslam
7ab3934eb7
add message comment
2019-09-04 12:18:37 +01:00
Asim Aslam
0075477df0
make tunnel broker use multicast
2019-09-04 12:18:31 +01:00
Asim Aslam
d5be2136ad
cleanup new message creation
2019-09-04 12:16:31 +01:00
Asim Aslam
c718b8bf93
Move vars and comment
2019-09-04 12:00:11 +01:00
Asim Aslam
a24818ee54
Fix typo
2019-09-04 11:58:25 +01:00
Asim Aslam
66db0ac52c
Move announce into session
2019-09-04 11:58:03 +01:00
Asim Aslam
b9c437fbfe
Tunnel discover/announce/open/session/close
2019-09-04 09:48:05 +01:00
Asim Aslam
147899283c
Merge pull request #728 from wuyumin/master
...
Update config source README file
2019-09-04 09:16:04 +01:00
Yumin Wu
5b991cd2c2
Update config source README file
2019-09-04 15:49:58 +08:00
Yumin Wu
bb64f94313
.gitignore file for develop tools
2019-09-04 15:47:46 +08:00
Milos Gajdos
4f4b3d3bae
Send connect message to NetworkChannel once we are not at caller mercy
2019-09-03 19:51:52 +01:00
Asim Aslam
eb4a709195
Merge branch 'master' of ssh://github.com/micro/go-micro into tunnel
2019-09-03 17:20:39 +01:00
Asim Aslam
6c21b31226
Merge pull request #727 from milosgajdos83/bug-overhaul
...
Major bug overhaul in how we handle network.Nodes and related handler
2019-09-03 17:20:15 +01:00
Milos Gajdos
6eb6d050ed
Major bug overhaul in how we handle network.Nodes and related handler
2019-09-03 16:39:27 +01:00
Asim Aslam
6c7582a6be
Move message to session
2019-09-03 15:56:37 +01:00
Milos Gajdos
3ea4490d6c
Don't preallocate the slice if you don't index later on.
2019-09-03 15:02:30 +01:00
Asim Aslam
b50c44a758
Merge pull request #726 from milosgajdos83/prune-nodes
...
Prune nodes that have not announced themselves for certain time period.
2019-09-03 10:28:31 +01:00
Milos Gajdos
ec6318befc
Prune nodes that have not announced themselves for certain time period.
2019-09-03 10:00:14 +01:00
Asim Aslam
5440325a18
Merge pull request #724 from milosgajdos83/efficient-bfs-queue
...
Make Nodes() BFS implementation efficient
2019-09-03 07:43:37 +01:00
Milos Gajdos
fb13877904
Make Nodes() BFS implementation efficient
2019-09-03 02:58:17 +01:00
Asim Aslam
2f5e3c66b9
Merge pull request #723 from milosgajdos83/sort-nodes-search
...
Sort the returned slice of nodes before searching
2019-09-02 20:13:20 +01:00
Milos Gajdos
a8d4299df9
Sort the returned slice of nodes before searching
...
See docs:
https://golang.org/pkg/sort/#Search
2019-09-02 20:00:52 +01:00
Asim Aslam
90745c14f2
Merge pull request #722 from milosgajdos83/net-handler
...
[WIP] Network handler
2019-09-02 17:15:38 +01:00
Milos Gajdos
86665454e7
Implementation of Nodes method. First take on full handler
2019-09-02 17:06:21 +01:00
Milos Gajdos
4f5a849211
Added Nodes method to Network interface
2019-09-02 12:40:05 +01:00
Milos Gajdos
bf53c16e4b
Rough outline of Network introspection interface
2019-09-02 12:40:05 +01:00
Asim Aslam
6c3631728b
Merge pull request #721 from micro/tunnel
...
Separate lookup nodes and setup nodes
2019-09-02 12:10:24 +01:00
Asim Aslam
2cdfed359f
Separate lookup nodes and setup nodes
2019-09-02 12:05:47 +01:00
Asim Aslam
956be5c59d
Merge pull request #717 from micro/client-stream
...
use with stream for client connection
2019-09-02 07:36:41 +01:00
Asim Aslam
52d9d75dfa
use with stream for client connection
2019-08-31 18:26:48 +01:00
Asim Aslam
0d94784e72
Add some tunnel comments
2019-08-31 17:32:20 +01:00
Asim Aslam
65c2de5a79
Merge pull request #716 from micro/tunnel
...
Rename Tunnel ID to Channel
2019-08-31 16:32:41 +01:00
Asim Aslam
6fa9d7270f
Rename Tunnel ID to Channel
2019-08-30 20:05:00 +01:00
Asim Aslam
140c830af1
Merge pull request #715 from milosgajdos83/net-debug
...
Add proto definitions for network introspection.
2019-08-30 12:38:24 +01:00
Milos Gajdos
b37837ad92
Add proto definitions for network introspection.
2019-08-30 12:29:26 +01:00
Asim Aslam
10b64af0b3
Merge pull request #713 from milosgajdos83/route-loop-break
...
Avoid setting routes that route back to the node without its being direct GW to dest
2019-08-30 11:33:17 +01:00
Asim Aslam
5d01284574
Merge pull request #714 from wuyumin/master
...
Load consul source
2019-08-30 10:15:37 +01:00
Yumin Wu
ff81e4b246
Load consul source
2019-08-30 16:20:58 +08:00
Milos Gajdos
e955e3f798
Avoid routes that route back to node without its being direct GW to dest
2019-08-30 00:04:46 +01:00
Asim Aslam
a17a8b3372
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-08-29 17:21:49 +01:00
Asim Aslam
e1d56fbf58
switch warn to error logging
2019-08-29 17:21:43 +01:00
Milos Gajdos
e7d8cdda44
Avoid duplicate debug logs.
2019-08-29 16:58:07 +01:00
Asim Aslam
690640eeeb
Merge pull request #712 from milosgajdos83/route-update
...
Only emit table event if table.Update actually happens
2019-08-29 16:30:27 +01:00
Milos Gajdos
4f788c6fc7
Only emit the events when actually deleting the route
2019-08-29 16:25:21 +01:00
Milos Gajdos
f50bd400f8
Only emit event if Update actually happens
2019-08-29 16:21:30 +01:00
Asim Aslam
b457ec1990
Merge pull request #711 from milosgajdos83/node-neighbours
...
Don't override the neighbours.
2019-08-29 15:48:13 +01:00
Milos Gajdos
ffa6b551f4
Don't override the neighbours.
2019-08-29 15:42:07 +01:00
Asim Aslam
3d03fe4076
Fix panic for nil slice
2019-08-29 15:09:01 +01:00
Asim Aslam
6eecb199e9
Merge pull request #710 from micro/nodes
...
add the ability to provide seed nodes to the network
2019-08-29 15:00:51 +01:00
Asim Aslam
7479515099
add the ability to provide seed nodes to the network
2019-08-29 14:53:30 +01:00
Asim Aslam
6e3d53e1ee
Merge pull request #709 from micro/tunnel-arp
...
Tunnel Direction Fix
2019-08-29 13:13:25 +01:00
Asim Aslam
721c5e6857
fix broken build
2019-08-29 13:11:20 +01:00
Asim Aslam
7d033818cf
if the service name is blank, barf
2019-08-29 13:10:06 +01:00
Asim Aslam
00ab58f61b
Fix loopback cruft
2019-08-29 12:42:27 +01:00
Asim Aslam
b3aef71fdb
Merge pull request #708 from milosgajdos83/route-metric
...
Set the route.Metric before updating routing table
2019-08-29 12:28:43 +01:00
Milos Gajdos
8606f1e143
Set the route.Metric before updating routing table
2019-08-29 11:45:47 +01:00
Asim Aslam
927fac2cec
Merge pull request #706 from milosgajdos83/neighbour-map
...
Broadcast neighbourhood
2019-08-28 23:16:42 +01:00
Asim Aslam
6ab86c9e57
Don't process unless connected, and only fire loopback messages back up the loopback
2019-08-28 23:12:22 +01:00
Milos Gajdos
db8e2620cb
Make tunnel channel clients key-able. Neighbour map simplified.
...
tunClient is a map of tunnel clients keyed on tunnel channel name.
Neighbour map is now a cimple map of nodes which contains its nodes.
2019-08-28 23:11:26 +01:00
Milos Gajdos
d09b7dbbef
Broadcast neighbourhood; fix critical bugs in channel connections
...
This commit introduces neighbourhood announcements which allows to
maintaing neighbour map if each next-hop node.
It also fixes a critical bug when accepting connections for a particular
tunnel channel.
2019-08-28 20:11:19 +01:00
Asim Aslam
a4f5772555
add network field to the routes
2019-08-28 08:41:19 +01:00
Asim Aslam
731f6f74dd
Merge pull request #703 from milosgajdos83/net-id
...
Adds network id. Skips processing routes when router is the origin.
2019-08-28 08:05:19 +01:00
Milos Gajdos
5e7208119e
Adds network id. Skips processing routes when router is the origin.
2019-08-27 23:08:35 +01:00
Asim Aslam
470304ef87
Merge pull request #701 from h-hy/master
...
Check last for the address binded in lo interface (LVS , DR mode)
2019-08-27 18:08:52 +01:00
huanghaoyan
a6ab4d7b4b
check last for the address bind in lo interface.
2019-08-27 23:35:27 +08:00
Asim Aslam
87b56d46ac
Use tunnel transport and set server address
2019-08-27 13:21:36 +01:00
Milos Gajdos
371b23d055
Introduce DefaultLink; dont hardcode name of the link
2019-08-27 11:36:46 +01:00
Asim Aslam
f97565ef0a
Merge pull request #685 from milosgajdos83/default-network
...
Default network implementation
2019-08-27 11:02:55 +01:00
Asim Aslam
0888d2fbbc
Add grpc content-type
2019-08-27 08:13:58 +01:00
Shu xian
75e20b5bf7
Merge pull request #1 from micro/master
...
merge
2019-08-27 09:38:18 +08:00
Asim Aslam
443fc0ebde
Merge pull request #700 from micro/h2-grpc
...
H2 grpc
2019-08-26 15:55:31 +01:00
huanghaoyan
35e7b9551f
ignore Loopback Address (LVS,DR mode)
2019-08-26 21:48:40 +08:00
Asim Aslam
6daf4fda72
Full support for grpc server side
2019-08-26 12:33:59 +01:00
Asim Aslam
36623bfe50
Improve stream processing
2019-08-25 19:30:22 +01:00
Asim Aslam
6128d18ee0
checkpoint fixing data race to process h2 and grpc requests
2019-08-24 20:12:04 +01:00
Asim Aslam
abadb2211e
Merge pull request #698 from micro/tunnel-broker
...
Add a tunnel broker
2019-08-24 14:37:20 +01:00
Asim Aslam
ca267f73de
add a tunnel broker
2019-08-24 09:46:55 +01:00
Asim Aslam
d8608b2343
Merge pull request #697 from micro/static-resolver
...
Add a static network node resolver
2019-08-23 22:05:02 +01:00
Milos Gajdos
ed8d28c9ab
Set Route.Link to "network" not Route.Network. Oops!
2019-08-23 21:08:18 +01:00
Milos Gajdos
88e47b9b06
Dont bail when unable to resolve network nodes.
2019-08-23 17:48:14 +01:00
Asim Aslam
1b0295de0d
Add a static network node resolver
2019-08-23 17:24:21 +01:00
Milos Gajdos
9448d7c164
Set Route.Network to "network" and Router.Gateway to network.Address
2019-08-23 16:01:57 +01:00
Milos Gajdos
8c3eec9f2a
Set the default resolver to registry
2019-08-23 15:14:16 +01:00
Milos Gajdos
e53484302c
Added ControlChannel tunnel.Listener to process incoming messages
2019-08-23 15:14:16 +01:00
Milos Gajdos
db89fc4efe
Set server name to the correct value.
2019-08-23 15:14:16 +01:00
Milos Gajdos
e1599b0f17
Set server name. Set default network name.
2019-08-23 15:14:16 +01:00
Milos Gajdos
a09d5d2e9a
Add Address method. Start and Stop router/server.
2019-08-23 15:14:16 +01:00
Milos Gajdos
6c1f1d66f7
Switch received messages on the right header
2019-08-23 15:14:16 +01:00
Milos Gajdos
a6e1287b27
Replaced incorrect proto import path
2019-08-23 15:14:15 +01:00
Milos Gajdos
fcec6e8eae
First attempt to implement default network interface
2019-08-23 15:14:15 +01:00
Milos Gajdos
30dd3f54f0
Make router.Table docs consistent
2019-08-23 15:14:15 +01:00
Milos Gajdos
6beae23afd
First commit. Outline of the default network.
2019-08-23 15:14:15 +01:00
Asim Aslam
718780367e
Merge pull request #696 from milosgajdos83/server-idempotent
...
Make server Start() and Stop() idempotent
2019-08-23 15:12:33 +01:00
Milos Gajdos
ba99f037fb
Lock started flag when changing it.
2019-08-23 15:07:08 +01:00
Milos Gajdos
80dc0b97a9
Make server starts and stops idempotent
2019-08-23 15:00:57 +01:00
Asim Aslam
1a32e3a11d
Merge pull request #695 from micro/proxy-link
...
Support multiple clients in the proxy as Links
2019-08-23 14:48:49 +01:00
Asim Aslam
955dc2a23d
change where we order the routes
2019-08-23 14:11:53 +01:00
Asim Aslam
934b8eb86d
Error as link not found
2019-08-23 14:09:57 +01:00
Asim Aslam
b7f510ff64
support links in the proxy
2019-08-23 14:05:11 +01:00
Asim Aslam
353eade6c3
Update client proto
2019-08-23 12:06:11 +01:00
Asim Aslam
a133e61c2d
Merge pull request #694 from milosgajdos83/tunnel-loopback-sleep
...
Lock when setting loopback flag and receiving keepalives
2019-08-22 17:35:03 +01:00
Milos Gajdos
99d39e743b
Lock when setting loopback flag and receiving keepalives
2019-08-22 16:31:37 +01:00
Asim Aslam
0cdac2aa36
Merge pull request #689 from milosgajdos83/router-stop
...
Make router.Stop idempotent
2019-08-21 21:25:48 +01:00
Milos Gajdos
75871287a1
Make stop idempotent. Small refactoring. Router name is memory.
2019-08-21 21:10:42 +01:00
Asim Aslam
fb750a0bb1
Don't start the router if its already running
2019-08-21 18:58:56 +01:00
Asim Aslam
c6e15ef2d1
rename server, set version to timestamp
2019-08-21 15:43:46 +01:00
Asim Aslam
f787cc0ee0
Merge pull request #687 from micro/tunnel
...
Add tunnel address
2019-08-21 13:01:28 +01:00
Asim Aslam
c2d85a6e1f
Add tunnel address
2019-08-21 12:55:10 +01:00
Milos Gajdos
86f0c06fac
Removed filewatch counter test.
2019-08-21 11:26:41 +01:00
Asim Aslam
0aea8e3163
Merge pull request #686 from milosgajdos83/config-watcher
...
Introduce ErrStoppedWatcher for source.Source Watchers and fixed test
2019-08-21 11:06:14 +01:00
Milos Gajdos
4ea27517b5
Source watcher ErrStoppedWatcher and fixed test
2019-08-20 22:32:47 +01:00
Asim Aslam
f8e68ae101
Add string method to tunnel
2019-08-20 17:21:35 +01:00
Asim Aslam
f848041c49
Add a message type to the tunnel
2019-08-20 17:20:21 +01:00
Asim Aslam
dfbd730b8c
Fix mucp service option passing
2019-08-20 16:48:09 +01:00
Asim Aslam
ac2a5a04a2
Merge pull request #681 from unistack-org/fix_wg
...
fix panic: negative WaitGroup counter
2019-08-19 12:06:45 +01:00
f1d08f251f
fix panic: negative WaitGroup counter
...
avoid double wait group Done()
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-08-19 13:58:57 +03:00
Asim Aslam
718ae42808
Merge pull request #680 from printfcoder/master
...
fix file watcher event bug on Linux
2019-08-19 08:34:21 +01:00
Shu Xian
2413cbcd80
fix file watcher event bug on Linux
...
the watcher can not normally get events of file changes on linux. it just can get the first two changes.
2019-08-19 15:28:24 +08:00
Asim Aslam
9c820445a4
Merge pull request #679 from micro/grpc-codec
...
Force grpc client/server to use grpc codec for broker
2019-08-18 11:37:38 +01:00
Asim Aslam
c44fd63301
Force grpc client/server to use grpc codec for broker
2019-08-18 11:28:21 +01:00
Asim Aslam
d9a699ae6f
Merge pull request #673 from micro/multiplex
...
Stream Multiplexing
2019-08-16 17:41:45 +01:00
Asim Aslam
4495ca3839
Use client.Call for non streaming requests
2019-08-16 17:24:17 +01:00
Asim Aslam
0b0eee41d0
functioning proxy code
2019-08-16 16:46:29 +01:00
Asim Aslam
e18f8defde
Merge pull request #672 from milosgajdos83/tunnel-ping
...
Monitor outbound links and delete them when disconnected
2019-08-16 16:09:14 +01:00
Milos Gajdos
7abdc68049
Fixed the race. Made wait channel boolean.
2019-08-16 15:40:35 +01:00
Milos Gajdos
c90e1ccb99
Fixed reconnect code; refactor tunnel tests.
2019-08-16 15:18:34 +01:00
Asim Aslam
991142cd57
No need to set request in the buffer
2019-08-16 14:42:45 +01:00
Asim Aslam
5a5b1b8f6e
only continue to stream when its a stream
2019-08-15 20:54:28 +01:00
Asim Aslam
58bc4c103f
go fmt
2019-08-15 20:54:09 +01:00
Asim Aslam
88817dc53f
Strip some dead code
2019-08-15 20:54:00 +01:00
Asim Aslam
ef04331b86
multiplexing cruft
2019-08-15 20:08:49 +01:00
Milos Gajdos
67215ae5da
Changed nodeLink to setupLink
2019-08-15 19:24:24 +01:00
Milos Gajdos
f120452d28
Monitor outbound links periodically and reconnect the failed links.
2019-08-15 18:18:58 +01:00
Milos Gajdos
740cfab8d0
Monitor outbound links and delete them when disconnected
2019-08-15 16:52:16 +01:00
Asim Aslam
f6b8045dd5
send client error if it exists
2019-08-15 15:22:53 +01:00
Asim Aslam
b776fbb766
add a pseudo socket implementation
2019-08-15 15:09:56 +01:00
Asim Aslam
a42de29f67
Do same for host port on deregister
2019-08-15 08:59:50 +01:00
Asim Aslam
0f6d09af33
go fmt
2019-08-15 08:47:32 +01:00
Asim Aslam
2dd5109eee
Merge pull request #669 from printfcoder/master
...
fix registry addr error for mq-rpc
2019-08-15 07:36:06 +01:00
Shu xian
e609095ba4
Merge pull request #2 from micro/master
...
merge
2019-08-15 08:38:08 +08:00
Asim Aslam
4843f09afa
Merge pull request #670 from milosgajdos83/loopback-msg-fix
...
Fixing the tunnel loopback messaging
2019-08-14 17:28:15 +01:00
Milos Gajdos
f9eddf1e6f
Fixing the tunnel loopback messaging
2019-08-14 17:14:39 +01:00
Shu xian
f19308f1e6
Merge pull request #1 from micro/master
...
merge
2019-08-14 22:02:41 +08:00
Asim Aslam
8f0c2e0412
add a better tunnel test
2019-08-14 14:38:17 +01:00
Shu Xian
bf0e46dc0d
fix registry addr error for mq-rpc
2019-08-14 21:32:28 +08:00
Asim Aslam
15975d2903
Merge pull request #668 from milosgajdos83/tun-token-loopback
...
[WIP] Tunnel loopback connections
2019-08-14 14:32:18 +01:00
Milos Gajdos
9f2f0e3cea
Moved Close method to the bottom
2019-08-14 13:26:23 +01:00
Milos Gajdos
151bcf0ea1
Send and receive on loopback tunnel interface
2019-08-14 13:00:10 +01:00
Asim Aslam
dc0fbfc3c0
Merge pull request #666 from unistack-org/log
...
export log levels and reverse log level order
2019-08-14 07:41:01 +01:00
Milos Gajdos
e607485c6b
Check for token in every received message.
2019-08-14 01:23:03 +01:00
70d0029658
add warn log level
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-08-14 02:26:51 +03:00
a606813fdf
export log levels and reverse log level order
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-08-14 02:18:22 +03:00
Milos Gajdos
750267b308
first commit to draft up a way for Sending messages to loopback
2019-08-13 20:11:23 +01:00
Asim Aslam
7ce0305db4
only operate on clients that are the same as the server
2019-08-13 16:08:56 +01:00
Asim Aslam
c39591af0e
add a mux package for the proxy
2019-08-13 15:21:51 +01:00
Asim Aslam
fedc6be3e6
Merge pull request #663 from milosgajdos83/router-start
...
Add Start method to router
2019-08-13 08:12:56 +01:00
Milos Gajdos
cb1679fd8d
Add Start method to router
...
Added Start to router packages.
Fixed potential deadlocks.
2019-08-12 22:23:46 +01:00
Asim Aslam
c0a676bfa9
Only check the router status if the lookup fails
2019-08-12 17:06:08 +01:00
Asim Aslam
cb4e376c64
Update go mod
2019-08-12 12:35:09 +01:00
Asim Aslam
c2c8182a5b
delete tunnel headers and add some TODOs
2019-08-11 21:53:40 +01:00
Asim Aslam
01cb146e0d
send message once after creating socket
2019-08-11 18:24:16 +01:00
Asim Aslam
d0d729a789
fix the tunnel execution
2019-08-11 18:11:33 +01:00
Asim Aslam
113d87d855
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-08-11 16:15:30 +01:00
Asim Aslam
56df10f68b
use keepalive in quic by default
2019-08-11 16:12:31 +01:00
Asim Aslam
3a5428fb36
Merge pull request #660 from xpunch/serviceNotFoundIssue
...
Service not found issue
2019-08-11 12:44:27 +01:00
johnson
178a3b3d8e
Merge remote-tracking branch 'origin/master' into serviceNotFoundIssue
...
# Conflicts:
# client/grpc/grpc.go
2019-08-11 19:34:00 +08:00
johnson
de34f259ba
update service not found error tooltip
...
fixing test failed issue
change back error type
change registry.ErrNotFound back to selector.ErrNotFound
change back error type
change registry.ErrNotFound back to selector.ErrNotFound
remove the single node tunnel test
Fix read yaml config from memory
package main
import (
"fmt"
"github.com/micro/go-micro/config"
"github.com/micro/go-micro/config/source/memory"
)
var configData = []byte(`
---
a: 1234
`)
func main() {
memorySource := memory.NewSource(
memory.WithYAML(configData),
)
// Create new config
conf := config.NewConfig()
// Load file source
conf.Load(memorySource)
fmt.Println(string(conf.Bytes()))
}
2019-08-11 19:31:22 +08:00
potato
81b68a1d7f
Merge pull request #4 from micro/master
...
update fork
2019-08-11 19:05:49 +08:00
Asim Aslam
1a600810a7
Merge pull request #661 from XiaoLer/patch-2
...
Fix read yaml config from memory
2019-08-11 12:03:18 +01:00
potato
94127ae1aa
Merge pull request #3 from micro/master
...
update fork
2019-08-11 18:24:57 +08:00
刘小乐
cd2ac648ff
Fix read yaml config from memory
...
package main
import (
"fmt"
"github.com/micro/go-micro/config"
"github.com/micro/go-micro/config/source/memory"
)
var configData = []byte(`
---
a: 1234
`)
func main() {
memorySource := memory.NewSource(
memory.WithYAML(configData),
)
// Create new config
conf := config.NewConfig()
// Load file source
conf.Load(memorySource)
fmt.Println(string(conf.Bytes()))
}
2019-08-11 18:05:35 +08:00
Asim Aslam
e613b0c205
remove the single node tunnel test
2019-08-11 09:54:02 +01:00
potato
57dacf1831
Merge pull request #2 from micro/master
...
update fork
2019-08-11 10:22:33 +08:00
Asim Aslam
8986b3135f
Strip logging
2019-08-10 18:46:54 +01:00
Asim Aslam
6dd3ea1853
Remove listen check
2019-08-10 18:44:50 +01:00
Asim Aslam
2c66e94045
fix some tunnel bugs like races and duplicate messages...
2019-08-10 16:37:49 +01:00
Asim Aslam
c1ff3ceee4
Add more verbose not found error
2019-08-09 12:31:29 +01:00
potato
b13604fb4b
Merge pull request #1 from micro/master
...
Update forks to latest
2019-08-09 18:46:28 +08:00
Asim Aslam
057adb2b2e
Merge pull request #658 from XiaoLer/patch-1
...
no more `WithData` method, instead of `WithJSON`
2019-08-09 11:37:35 +01:00
刘小乐
7bd6d1b549
no more WithData method, instead of WithJSON
2019-08-09 12:45:59 +08:00
Asim Aslam
37988b596d
Merge pull request #656 from milosgajdos83/tun-listener
...
Close the tunnel listener when the tunnel is cloed.
2019-08-08 15:25:19 +01:00
Milos Gajdos
9eb45dac82
Close the tunnel listener when the tunnel is cloed.
2019-08-08 15:20:53 +01:00
Asim Aslam
59b13aef22
tunnel skip zero length nodes
2019-08-08 13:15:30 +01:00
Asim Aslam
1e496938b7
more tunnel logging
2019-08-08 13:07:13 +01:00
Asim Aslam
fbc1d523d7
add ability to set log level via env var
2019-08-08 13:07:04 +01:00
Asim Aslam
11795071fb
Fix panic
2019-08-08 12:45:37 +01:00
Asim Aslam
c7e8a2aeb9
Merge pull request #651 from magodo/master
...
wait nats drain since it's asynchronous
2019-08-08 00:30:01 +01:00
Asim Aslam
cb1c1afc84
add quic to defaults
2019-08-08 00:19:30 +01:00
Asim Aslam
3fc7d9ea50
Quic requires an initial message to start the session so we need connect
2019-08-08 00:19:16 +01:00
Asim Aslam
abc2ace409
Merge pull request #653 from micro/tunnel
...
Add back the old tunnel interface
2019-08-07 22:36:15 +01:00
Asim Aslam
243d43df92
Strip master from travis
2019-08-07 22:32:16 +01:00
Asim Aslam
9c2b882008
Bump travis go
2019-08-07 22:27:03 +01:00
Asim Aslam
4370f03e04
update go modules
2019-08-07 22:11:52 +01:00
Asim Aslam
a3b962f37b
Fix travis test?
2019-08-07 22:02:58 +01:00
Asim Aslam
a894b4f354
add tunnel/transport package
2019-08-07 21:58:25 +01:00
Asim Aslam
fc379f2d2c
Remove other accept
2019-08-07 19:03:45 +01:00
Asim Aslam
dcf4fed6a3
Add a second test for two tunnels
2019-08-07 18:56:21 +01:00
Asim Aslam
117376a922
Add back the old tunnel interface
2019-08-07 18:44:33 +01:00
Asim Aslam
380d9790e6
add io.ReadWriteCloser ontop of transport.Socket
2019-08-07 15:02:00 +01:00
magodo
0baea58938
wait nats drain since it's asynchronous
...
1. nats subscription draining is removed, since it is asynchronous,
and there is no reliable way to detect when it is finished.
Remove this option to avoid confusion.
2. nats connection draining is kept, and use 2 callbacks to detect
draining timeout (timeout is set via `nats.Options`) or finish.
3. Also honour options passed in `broker.Init()` (previously only
`broker.New()` is honoured).
2019-08-07 17:58:45 +08:00
Asim Aslam
edb0fe4b16
fix the consul setup code
2019-08-06 19:43:46 +01:00
Asim Aslam
eae32176c4
Monitor all services in the monitor
2019-08-06 19:02:57 +01:00
Asim Aslam
bc751c55fb
Merge pull request #650 from micro/monitor
...
Add monitor/debug/service packages
2019-08-06 18:09:57 +01:00
Asim Aslam
91f2af91de
Fix bugs in monitor
2019-08-06 18:05:05 +01:00
Asim Aslam
3adce58eb2
Add monitor/debug packages
2019-08-06 17:53:14 +01:00
Asim Aslam
bb01b3ed78
Don't extract repeated value
2019-08-06 14:52:15 +01:00
Asim Aslam
c3ea25225c
Don't check value name on extraction
2019-08-06 14:49:42 +01:00
Asim Aslam
beffa625f8
fix broker log line
2019-08-06 12:25:51 +01:00
Asim Aslam
0d85e35da0
Merge pull request #649 from milosgajdos83/tun-types
...
Rough outline of tunnel types
2019-08-06 11:54:54 +01:00
Milos Gajdos
4074cce397
Rough outline of tunnel types
2019-08-06 11:46:47 +01:00
Asim Aslam
000431f489
Nats addr fix https://github.com/micro/go-micro/pull/648
2019-08-06 09:15:54 +01:00
Asim Aslam
e16420fdbd
Consul config fix https://github.com/micro/go-micro/pull/641
2019-08-06 09:15:38 +01:00
Milos Gajdos
52d8d26018
Transport() will return tunnel (pseudo) Transport
2019-08-05 21:09:46 +01:00
Asim Aslam
6649012af3
Merge pull request #645 from milosgajdos83/transport-out
...
Tunnel no longer embeds transport
2019-08-05 19:57:22 +01:00
Milos Gajdos
6b5dcbf814
Tunnel no longer embeds transport
2019-08-05 19:41:48 +01:00
Asim Aslam
34381213e7
Package comment
2019-08-05 18:04:47 +01:00
Asim Aslam
767292906a
Merge pull request #644 from milosgajdos83/tunnel
...
Adds outline of go-micro Tunnel interface
2019-08-05 17:54:40 +01:00
Milos Gajdos
e1ecd728c5
Adds outline of go-micro Tunnel interface
2019-08-05 17:52:57 +01:00
Asim Aslam
f1b6709722
Fix breaking api changes
2019-08-05 17:47:50 +01:00
Asim Aslam
4030ccc27b
Move proxy/router
2019-08-05 17:44:33 +01:00
Asim Aslam
2e67e23a23
Update .travis.yml
2019-08-03 15:16:30 +01:00
Asim Aslam
be229438bc
Merge pull request #640 from unistack-org/deadline
...
transport memory: add Send/Recv Timeout
2019-08-03 13:51:01 +01:00
e1709026e4
transport memory: add Send/Recv Timeout
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-08-03 15:39:44 +03:00
Asim Aslam
d250ac736f
In the event watchRegistry or watchTable exit then close the go routines
2019-08-02 15:17:48 +01:00
Asim Aslam
6719f8d655
Remove the table watcher when stopped
2019-08-02 14:59:08 +01:00
Asim Aslam
d7929ef8f3
Stop the ticker when exiting
2019-08-02 14:44:11 +01:00
Asim Aslam
04404441a4
Merge pull request #634 from micro/rcache-stop
...
Stop a goroutine leak in registy
2019-08-01 23:17:39 +01:00
Asim Aslam
b806e7bdf5
Stop a goroutine leak in registy
2019-08-01 23:03:11 +01:00
Milos Gajdos
2720c6f28e
Removed trailing white characters
2019-08-01 13:32:55 +01:00
Asim Aslam
cdf0f14d58
remove this code
2019-07-31 17:19:49 +01:00
Asim Aslam
679c5f0ccd
Fix some connection bugs
2019-07-31 16:49:48 +01:00
Asim Aslam
873bfcc73c
Process/Stop router
2019-07-31 16:46:55 +01:00
Asim Aslam
7884e889f4
Don't publish the process rpc call and embed the router handler in the network
2019-07-31 16:36:53 +01:00
Asim Aslam
b1c49a0ddc
Add router handler
2019-07-31 16:10:04 +01:00
Asim Aslam
318367cd71
move NewNetwork
2019-07-31 15:37:12 +01:00
Asim Aslam
2d09e74b0e
add address/advertise
2019-07-31 15:35:51 +01:00
Asim Aslam
3e90d32f29
Add proxy/router
2019-07-31 15:30:51 +01:00
Asim Aslam
fca89e06ef
Some network inspiration
2019-07-31 15:22:57 +01:00
Asim Aslam
89fc142e47
Update to use mdns 0.2.0
2019-07-31 13:16:57 +01:00
Asim Aslam
0b2c8ee523
Add top level data package comment
2019-07-30 16:47:18 +01:00
Asim Aslam
852abcaaed
yolo commit functioning router code. all credit to the milos gajdos
2019-07-29 18:57:40 +01:00
Asim Aslam
11f80708ce
move lock
2019-07-29 12:52:52 +01:00
Asim Aslam
104778e5e5
move lock
2019-07-29 12:52:32 +01:00
Asim Aslam
ae99b9a887
syntactic changes
2019-07-29 12:44:59 +01:00
Asim Aslam
8fdc050e2e
syntactic changes
2019-07-29 12:44:28 +01:00
Asim Aslam
8855beb62d
syntactic changes
2019-07-29 12:43:20 +01:00
Asim Aslam
47acdf6a4b
move Table to table
2019-07-29 12:40:13 +01:00
Asim Aslam
4fc9b9821a
Merge pull request #621 from milosgajdos83/no-table-package
...
[WIP] No table package. router/service package introduced
2019-07-29 12:36:40 +01:00
Asim Aslam
a5fb124b22
update the mdns version
2019-07-29 12:34:00 +01:00
Asim Aslam
5b327ce723
change id to name in resolver
2019-07-28 20:00:09 +01:00
Asim Aslam
2b5bf1154a
rename config tests
2019-07-28 19:52:01 +01:00
Asim Aslam
b7b8f8bf11
remove agent readme
2019-07-28 19:47:25 +01:00
Asim Aslam
a63dcda003
Strip the verbosity of the debug handler
2019-07-28 19:43:50 +01:00
Asim Aslam
1db98ee0f0
move all the buffer references to util/buf
2019-07-28 19:33:24 +01:00
Asim Aslam
f2669e7b1e
Move connection pool to own package
2019-07-28 18:56:18 +01:00
Asim Aslam
adb6760e21
readd the resolver
2019-07-28 12:14:40 +01:00
Asim Aslam
2b3a87a212
Merge pull request #617 from three-zhang/master
...
fix bug
2019-07-27 18:08:32 +01:00
Milos Gajdos
3d2ec5dbb1
Regenerated proto because proto reasons.
2019-07-27 16:12:44 +01:00
Milos Gajdos
96f9ce1bd3
Proper router stopping. Printable router status.
2019-07-27 16:11:06 +01:00
Milos Gajdos
cb3052ce04
Proper stopping of service router
2019-07-27 16:11:06 +01:00
Milos Gajdos
2f1658c213
Table package is no more, hence removed references to it
2019-07-27 16:11:06 +01:00
Milos Gajdos
d8b00e801d
Stop watcher when router stops. Drain advert channel when stopping.
2019-07-27 16:11:06 +01:00
Milos Gajdos
002abca61f
Finished Advertise(). Implemented Process()
2019-07-27 16:11:06 +01:00
Milos Gajdos
c5740ae031
Outline of Advertise, Watch and start of the router.
2019-07-27 16:11:05 +01:00
Milos Gajdos
ddad43bd77
Added service.Router Route CRUD. Outlined watcher and run()
2019-07-27 16:11:05 +01:00
Milos Gajdos
b6fb969ab9
Add List and Lookup implementation. Default error for not implement.
2019-07-27 16:11:05 +01:00
Milos Gajdos
22d0f1f08f
Changed documentation.
2019-07-27 16:08:14 +01:00
Milos Gajdos
c3a8146d99
Added outline of router/service package.
2019-07-27 16:08:14 +01:00
Milos Gajdos
2338780a61
Full router RPC coverage
2019-07-27 16:08:14 +01:00
Milos Gajdos
e22c4b4c07
table package is no more. Cleaned up unnecessary code, too.
2019-07-27 16:04:08 +01:00
张三
100cb9db6b
fix bug
...
https://github.com/micro/micro/issues/293
Send request failed using micro Content-Type application/grpc+json
2019-07-27 11:11:16 +08:00
Asim Aslam
4e27aac398
regen router proto
2019-07-26 18:07:36 -07:00
Asim Aslam
7ca06f0c1d
set router proto package name to go.micro.router
2019-07-26 18:07:14 -07:00
Asim Aslam
7ca8f8f0ab
Merge pull request #611 from milosgajdos83/rpc-router
...
Adds new RPC methods to router service interface
2019-07-24 13:30:29 -07:00
Milos Gajdos
9ad5ae6644
Adds new RPC methods to router service interface
...
We have added Advertise() and Process() RPCs in this commit.
2019-07-24 21:07:04 +01:00
Asim Aslam
220a8fafb1
Merge pull request #610 from milosgajdos83/proxy-watch
...
Adds route watcher to mucp.Proxy
2019-07-24 11:19:52 -07:00
Milos Gajdos
809de7a052
Mutex Unlock when we fail to store route in cache.
2019-07-24 19:13:05 +01:00
Milos Gajdos
23f0231a09
Adds route watcher to mucp.Proxy
2019-07-24 19:03:13 +01:00
Asim Aslam
74cbce72df
Merge pull request #609 from milosgajdos83/proxy-router-interface
...
mucp Proxy no longer uses RPC interface of router.Router directly
2019-07-24 10:40:33 -07:00
Milos Gajdos
b55adc0c30
mucp Proxy no longer uses RPC interface of router.Router directly
2019-07-24 18:32:39 +01:00
Asim Aslam
388ac34b7c
Merge pull request #608 from milosgajdos83/router-cleanup
...
Small router refactoring
2019-07-24 09:46:48 -07:00
Milos Gajdos
13a8cfe7f3
Small function documentation update
2019-07-24 17:22:27 +01:00
Milos Gajdos
1e94d9fe5a
Router cleanup and refactoring for win and profit.
...
This commit adds the following changes to router package:
* it refactors Advertise() function which now does only what
it claims to do: advertising
* various router packages functions/methods have been renamed to make
their functionality more obvious and more in line with what they actually do
* function documentation changes related to the above bullet points
2019-07-24 17:16:52 +01:00
Asim Aslam
49dcc3d1bd
Remove readme and examples from web repo
2019-07-22 09:57:34 -07:00
Milos Gajdos
481ebe9d4f
Merge pull request #604 from BruceWangNo1/patch-1
...
Update client.go
2019-07-22 10:55:55 +01:00
Bruce Wang
502f6d3e9f
Update client.go
...
fixed one typo
2019-07-22 15:41:14 +08:00
Asim Aslam
8f2585724c
Merge pull request #598 from unistack-org/ipv6fix
...
bunch of other ipv6 fixes
2019-07-18 07:24:47 -07:00
1217ca94b1
bunch of other ipv6 fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-07-18 08:59:53 +03:00
Asim Aslam
96cf14ed53
Merge pull request #591 from milosgajdos83/advert-damp
...
[WIP] Fixes advert route event dampening behaviour
2019-07-17 08:12:35 -07:00
Asim Aslam
3a8edd705c
Merge pull request #594 from unistack-org/ipv6
...
fix ipv6 addr parsing
2019-07-17 07:51:17 -07:00
Milos Gajdos
94b6455577
Increment WaitGroup before launching advertiseEvents goroutine
2019-07-17 13:02:47 +01:00
e688ab0a45
fix ipv6 addr parsing and using
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-07-17 12:20:29 +03:00
Milos Gajdos
2803146673
Renaming rampage
...
Addressing the comments in #591 , router.String() now returns "default"
Furthermore, a tonne of other renaming has been included in this commit
as a result of running go vet ./... inside the router package.
2019-07-17 00:06:11 +01:00
Asim Aslam
d4fefc4b76
Merge pull request #592 from unistack-org/speedup
...
changes to minimize allocations and provide useful info
2019-07-16 14:41:11 -07:00
a3bddf5839
changes to minimize allocations and provide useful info
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-07-17 00:21:03 +03:00
Milos Gajdos
92495d22db
Fixes advert dampening behaviour.
...
This commit adds the following changes:
* advert now stores a list of route events as opposed to just last one
* attempt to dedup route events before appending them to advert
* have max suppress threshold for long time suppressed adverts
* decaying events on every advert tick
Originally we werent decaying penalties on every advert tick.
That was incorrect behaviour. Furthermore some events would end up being
accumulated potentially causing memory leaks.
We were also overriding the last received router event which was causing
incorrect sequence of events to be applied when received by a receiver:
Create, Delete would be "squashed" into Delete only which would be
nonsensical since the Create event would never be delivered hence we
would be deleting nonexistent routes.
Not Decaying the events on every tick or not having the max suppression
threshold could lead to DoS by growing the router memory infinitely.
2019-07-16 19:00:25 +01:00
Asim Aslam
8c7e35c3c6
Merge pull request #587 from milosgajdos83/registry-copy-perf
...
Preallocate slices in registry.Copy() to avoid append() reallocations when copying data
2019-07-15 07:04:49 -07:00
Milos Gajdos
c108188d65
Preallocate nodes slice in addNodes before populating it
2019-07-15 14:47:33 +01:00
Milos Gajdos
609934ce99
Preallocate slices; avoide append() reallocations when copying data
2019-07-15 11:13:58 +01:00
Asim Aslam
aa79c41fc5
update tunnel comment
2019-07-14 18:34:32 -07:00
Asim Aslam
a549f92dec
Merge pull request #585 from unistack-org/transport2
...
transport memory: fix races
2019-07-13 19:38:22 -07:00
81d2259fac
transport memory: fix races
...
* fix race with rand.Intn for non default source
* increase random interval to avoid issues when many services
running on the host
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-07-13 23:47:57 +03:00
Asim Aslam
2fecde1dbb
Merge pull request #583 from unistack-org/broker
...
broker memory: fix issue with publish/subscribe
2019-07-13 00:16:28 +01:00
008749b2b0
broker memory: fix issue with publish/subscribe
...
mutex locking have errors, so when two service (one pub, other sub)
try to use this broker it waits for mutex release and nothing works
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-07-13 00:04:53 +03:00
Asim Aslam
3ccb900bca
Merge pull request #582 from unistack-org/memory2
...
memory transport: use write mutex lock when close
2019-07-12 10:29:46 +01:00
a72e1185da
memory transport: use write mutex lock when close
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-07-12 12:11:08 +03:00
Asim Aslam
5157241c88
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-07-11 21:46:33 +01:00
Asim Aslam
70d811c47a
don't use quic in the test
2019-07-11 21:46:27 +01:00
Asim Aslam
b371704444
Merge pull request #581 from milosgajdos83/proto-update
...
Added proto.Advert, proto.TableEvent is now proto.Event
2019-07-11 21:44:10 +01:00
Asim Aslam
a5f21e69ad
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-07-11 21:41:00 +01:00
Asim Aslam
6b984136f7
update go mod
2019-07-11 21:40:52 +01:00
Milos Gajdos
9c851f297b
Added proto.Advert type to protobuf definitions
2019-07-11 21:14:34 +01:00
Asim Aslam
dac8a13a77
Merge pull request #580 from milosgajdos83/advertise-table
...
Advertise full table every minute.
2019-07-11 12:49:02 +01:00
Asim Aslam
360e193a01
update go mod
2019-07-11 12:47:50 +01:00
Milos Gajdos
35a1de91a9
Advertise full table every minute.
2019-07-11 12:39:20 +01:00
Asim Aslam
7631463b94
fix compilation errors
2019-07-11 10:47:02 +01:00
Asim Aslam
6581586226
Make tunnel test use quic
2019-07-11 10:34:01 +01:00
Asim Aslam
06c29302d7
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-07-11 09:38:27 +01:00
Asim Aslam
dab0e9e9bc
Set next protos in quic
2019-07-11 09:38:20 +01:00
Asim Aslam
47d91a1f64
Merge pull request #579 from magodo/magodo/store_get_reset_expiry
...
`memoryStore.Read()` returns honor `Record.Expiry`
2019-07-11 08:39:46 +01:00
magodo
bdeae91063
condense code
2019-07-11 14:13:58 +08:00
magodo
c8d57032bc
update expiry only if it is non-zero
2019-07-11 12:58:20 +08:00
magodo
3abe3aa28b
store.Read() returns honor Record.Expiry
2019-07-11 12:51:55 +08:00
Asim Aslam
9b1cb4ef0e
functioning tunnel with test
2019-07-11 00:55:50 +01:00
Asim Aslam
b4796724d9
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-07-11 00:14:43 +01:00
Asim Aslam
ae5376cc0e
functioning tunnel/link code
2019-07-11 00:14:36 +01:00
Asim Aslam
7bee0629c2
Merge pull request #578 from unistack-org/memory
...
memory transport: fix race cond on channel close
2019-07-10 23:30:46 +01:00
29fa8de98e
memory transport: fix race cond on channel close
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-07-11 01:21:03 +03:00
Asim Aslam
382fbecd40
Merge pull request #577 from milosgajdos83/update-events
...
Added update action to handle update registry events. Table.Update inserts when no route found.
2019-07-10 21:54:48 +01:00
Milos Gajdos
a0ee7d2092
Added update action to manageServiceRoutes. Table is embedded; skip opts
2019-07-10 21:28:32 +01:00
Asim Aslam
1f744b31a4
Return the dead node when deleting the service
2019-07-10 21:03:53 +01:00
Asim Aslam
998a23c963
Functional code for link
2019-07-10 20:04:01 +01:00
Asim Aslam
e17ecf66b1
Fix breaking code
2019-07-10 20:03:55 +01:00
Asim Aslam
c5dd737568
Add back in broker address
2019-07-10 19:58:30 +01:00
Asim Aslam
7c29be288b
Update a tunnel top level comment
2019-07-10 19:33:34 +01:00
Asim Aslam
217f540601
The listener has no session id
2019-07-10 19:17:36 +01:00
Asim Aslam
ffae0f0fab
Add a comment for tunnel processor
2019-07-10 19:13:50 +01:00
Asim Aslam
4cca2b43a3
Add further link comments
2019-07-10 19:11:32 +01:00
Asim Aslam
8c157c1d5f
update link comments
2019-07-10 19:09:22 +01:00
Asim Aslam
1f218f7b48
Allow the socket to be specified
2019-07-10 19:07:18 +01:00
Asim Aslam
7e0d4fe0cf
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-07-10 19:01:38 +01:00
Asim Aslam
0a39fe39c3
Update tunnel to use id+session for the key
2019-07-10 19:01:24 +01:00
Milos Gajdos
163b917ec7
proto.EventType Insert is now Create to mirror table.Event
2019-07-10 18:37:46 +01:00
Asim Aslam
0f16eb2858
add further comments to tunnel
2019-07-10 18:35:10 +01:00
Asim Aslam
89231f701b
Add comments and session
2019-07-10 18:26:11 +01:00
Asim Aslam
196e76e350
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-07-10 18:24:12 +01:00
Asim Aslam
f3d9177233
Add sessions to tunnel
2019-07-10 18:24:03 +01:00
Asim Aslam
8b7ac8a3f9
Merge pull request #576 from milosgajdos83/router-rpc
...
Added List and Watch rpc calls.
2019-07-10 17:55:23 +01:00
Milos Gajdos
8f5aed707e
Table.Add is now Table.Create. Insesrt event is now Create event.
2019-07-10 17:46:22 +01:00
Asim Aslam
c71576a538
Update link Id comment
2019-07-10 17:43:36 +01:00
Asim Aslam
27cfc06828
Cleanup and move around the link code
2019-07-10 17:42:41 +01:00
Asim Aslam
717ba4b3c0
Add tunnel comments
2019-07-10 17:41:17 +01:00
Asim Aslam
4e3a230356
top level package comment
2019-07-10 17:40:14 +01:00
Asim Aslam
66c2519696
Add Tunnel: an interface for stream duplexing over a link
2019-07-10 17:36:04 +01:00
Milos Gajdos
86dfa82dfa
Added List and Watch rpc calls.
2019-07-10 17:21:55 +01:00
Asim Aslam
55f8045a70
Add link: a layer ontop of a transport socket
2019-07-10 17:12:51 +01:00
Asim Aslam
b23d955536
Use gateway if available
2019-07-10 08:26:33 +01:00
Asim Aslam
5b565f9f10
update comment
2019-07-10 07:56:52 +01:00
Asim Aslam
9955ed2034
move table
2019-07-10 07:56:18 +01:00
Asim Aslam
c36107e811
cleanup consts
2019-07-10 07:51:24 +01:00
Asim Aslam
a08b64c8ab
remove the string methods
2019-07-10 07:50:33 +01:00
Asim Aslam
64ec0633a3
Fix breaks and go fmt
2019-07-10 07:47:17 +01:00
Asim Aslam
0a1b657221
visual cleanup of router code
2019-07-10 07:45:27 +01:00
Asim Aslam
34967e8e33
Merge pull request #573 from milosgajdos83/flap-detection
...
Router rework. Flap detection. Table package.
2019-07-10 07:12:18 +01:00
Asim Aslam
eda380284c
remove network
2019-07-09 18:45:14 +01:00
Asim Aslam
0bf54c122f
move transport back
2019-07-09 18:41:26 +01:00
Asim Aslam
97282a5377
remove resolver
2019-07-09 16:54:44 +01:00
Asim Aslam
b642d5e1c0
remove proto dir
2019-07-09 16:53:30 +01:00
Asim Aslam
c5a282ddd3
remove the tunnel
2019-07-09 16:52:44 +01:00
Milos Gajdos
6cf8bde612
Router selector and proxy modifications due to Route struct changes.
2019-07-09 16:45:31 +01:00
Asim Aslam
327029beff
fix string method
2019-07-09 16:44:43 +01:00
Asim Aslam
c5214c931f
reorder and reword
2019-07-09 16:38:44 +01:00
Asim Aslam
d725980444
add some initialisers
2019-07-09 16:37:59 +01:00
Milos Gajdos
23cb811f60
Removed fmt.Stringer artistry from all roouter and table structs
2019-07-09 16:17:18 +01:00
Milos Gajdos
c5fb409760
Removed debug logs
2019-07-09 15:55:39 +01:00
Milos Gajdos
70665e5a7d
Route has changed to accomodate Link, Service and Address
2019-07-09 15:46:32 +01:00
Milos Gajdos
449aa0a339
Collect ANNOUNCE mesage events before adding default gateway.
2019-07-09 15:46:31 +01:00
Milos Gajdos
265271008e
Simplified processEvents loop; Added router Announcement.
2019-07-09 15:46:31 +01:00
Milos Gajdos
b82245429e
Simplified table logic. Lookup tests. mucp/cient update
2019-07-09 15:46:31 +01:00
Milos Gajdos
cc590f5f2c
Table now has a dedicated package inside router package.
2019-07-09 15:46:31 +01:00
Milos Gajdos
0c1a28a9b6
Router routing table management. Table route hashes. Status codes changed.
...
We now manage routing table actions using dedicated functions run on
either registry or services in the registry.
Routing table now uses Route.Hash() instead of maintaining its own hash
struct filed which previously performed these operations.
Various names of variables have been changed to make them more concise.
2019-07-09 15:46:31 +01:00
Milos Gajdos
30d05e34a9
Read and remove routes based on registry event deltas
2019-07-09 15:46:31 +01:00
Milos Gajdos
b68f0e237f
Removed event from eventMap once sent to be advertised
2019-07-09 15:46:31 +01:00
Milos Gajdos
72ef032162
First shot at flapping detection and event advertising.
...
This commit also adds Route hash function, lots of debug messages for
now and String() methods for various API objects.
2019-07-09 15:46:30 +01:00
Milos Gajdos
d6c07dfb16
Update is now Advert
2019-07-09 15:46:30 +01:00
Milos Gajdos
ea872f6900
Updated error statements; Update ships list of events.
2019-07-09 15:46:30 +01:00
Asim Aslam
6bdc23a3aa
add comments
2019-07-08 16:32:12 +01:00
Asim Aslam
fa54db5ba5
rename network name to go.micro
2019-07-08 16:27:02 +01:00
Asim Aslam
8015a1daaf
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-07-08 16:25:41 +01:00
Asim Aslam
608a1f8add
remove node code
2019-07-08 16:25:04 +01:00
Asim Aslam
4a02e1ff2f
rewrite network interface
2019-07-08 16:24:57 +01:00
Asim Aslam
5cd1e81ba9
Merge pull request #570 from sunfuze/grpc-json-marshal
...
grpc: using jsonpb.Marshaler to do Marshal, map to jsonpb.Unmarsh
2019-07-08 08:44:51 +01:00
Asim Aslam
d3edad474e
Merge pull request #571 from micro/remove-port
...
Remove Port from registry
2019-07-08 08:18:26 +01:00
Asim Aslam
e0bf1c2283
Remove Port from registry
2019-07-08 08:01:42 +01:00
Joe
b655f7f55a
grpc: using jsonpb.Marshaler to do Marshal, map to jsonpb.Unmarsh
2019-07-08 10:32:10 +08:00
Asim Aslam
5b7454e5a8
update transport package comments
2019-07-07 15:04:07 +01:00
Asim Aslam
0b732b2c49
update transport package comments
2019-07-07 15:03:08 +01:00
Asim Aslam
be33d9204a
Merge pull request #569 from micro/event
...
Change Publication to Event
2019-07-07 12:45:37 +01:00
Asim Aslam
4b4ad68eb9
Change Publication to Event
2019-07-07 12:44:09 +01:00
Asim Aslam
79b03a6825
add broker args
2019-07-07 12:36:14 +01:00
Asim Aslam
777a203f96
gofmt
2019-07-07 12:33:54 +01:00
Asim Aslam
c1097a4509
strip broker address
2019-07-07 12:33:47 +01:00
Asim Aslam
5f664faeba
Add transport options comments
2019-07-07 12:23:03 +01:00
Asim Aslam
d2d6841f02
Move transport to network/transport
2019-07-07 10:37:34 +01:00
Asim Aslam
eafc930f84
Change network id to name
2019-07-07 10:10:38 +01:00
Asim Aslam
d1fc3c361e
Merge pull request #566 from unistack-org/speed
...
codec grpc: fix extra allocations on message unmarshal
2019-07-04 17:29:32 +01:00
e40307c567
codec grpc: fix extra allocations on message unmarshal
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-07-04 14:06:29 +03:00
Asim Aslam
a412486c39
Update registry util semantics
2019-07-04 11:36:49 +01:00
Asim Aslam
59a0e727e4
Merge pull request #563 from unistack-org/race
...
export registry util function to safe copy registry data
2019-07-04 11:16:54 +01:00
Asim Aslam
b35f227f7a
Merge pull request #565 from sunfuze/grpc-json-unmarshal
...
grpc: if unmarshal target is proto.Message, using jsonpb
2019-07-04 11:16:11 +01:00
Asim Aslam
00ba1655ca
remove some readmes
2019-07-04 11:15:54 +01:00
Joe
e88041dc26
if unmarshal target is proto.Message, using jsonpb
2019-07-04 16:43:36 +08:00
0e34c572b4
export registry util function to safe copy registry data
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-07-04 11:39:43 +03:00
Asim Aslam
2644497ccb
Fix some link connection logic
2019-07-03 19:51:40 +01:00
Asim Aslam
e54de56376
Functional loopback code
2019-07-03 19:26:24 +01:00
Asim Aslam
7008809eff
Make the link use debug
2019-07-02 20:57:23 +01:00
Asim Aslam
f619e46def
Some functioning network code
2019-07-02 20:54:21 +01:00
Asim Aslam
c3611aead2
go fmt
2019-07-02 20:53:42 +01:00
Asim Aslam
686aa3aa05
log levels
2019-07-02 19:21:43 +01:00
Asim Aslam
543dc0166c
Restructure network things before moving
2019-07-02 08:45:00 +01:00
Asim Aslam
372ad949ff
Rename to mucp transport
2019-07-02 00:48:15 +01:00
Asim Aslam
a0c2d18c40
Merge pull request #559 from milosgajdos83/table-tests
...
Default routing table tests
2019-07-02 00:28:52 +01:00
Asim Aslam
b4236f4430
Add network transport
2019-07-02 00:27:53 +01:00
Milos Gajdos
0e1fcc4f28
Stop hardcoding table sizes; increment as you move on.
2019-07-01 23:38:49 +01:00
Milos Gajdos
8f22e61a8b
List test function properly named.
2019-07-01 23:38:48 +01:00
Milos Gajdos
956902f641
Added List tests.
2019-07-01 23:38:48 +01:00
Milos Gajdos
ffac0b9a18
First batch of Add/Del/Update tests.
2019-07-01 23:38:48 +01:00
Asim Aslam
c108b51d2a
add network to Node proto
2019-07-01 23:12:05 +01:00
Asim Aslam
5fd798c9b6
add resolver comment
2019-07-01 23:11:55 +01:00
Asim Aslam
ebe3633082
move network initialiser code
2019-07-01 22:59:11 +01:00
Asim Aslam
032c3134c6
update comment
2019-07-01 22:54:26 +01:00
Asim Aslam
8ccf61ebaf
Strip Link methods
2019-07-01 22:52:28 +01:00
Asim Aslam
fbbc33d0f9
Set Network() to string
2019-07-01 22:41:27 +01:00
Milos Gajdos
da299ea26b
Simmplified RT Lookup. No more Metric in Query.
2019-07-01 20:33:08 +01:00
Asim Aslam
d3e200575c
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-07-01 18:37:45 +01:00
Asim Aslam
ddee8412ff
Add tunnel interface
2019-07-01 18:37:39 +01:00
Asim Aslam
c84f101e17
Merge pull request #553 from milosgajdos83/router-network
...
Changed router interface. Added table watcher. Advertise routes
2019-07-01 16:17:02 +01:00
Milos Gajdos
f6e064cdbd
Fixed router idempotency. Return registry.ErrWatchStopped from mdns reg
2019-07-01 15:46:26 +01:00
Milos Gajdos
cff46c3fd8
Added Init state. Recreate exit and advertise channels when recovering
...
In order to differentiate between intialized and other states we
introduced a new state: Init. The router is in this state only when it's
created.
We have cleaned up router status management which is now handled by
manageStatus function only.
2019-07-01 15:46:26 +01:00
Milos Gajdos
32300eadc1
Added Router Status which allows to track router status
2019-07-01 15:46:25 +01:00
Milos Gajdos
8ad2f73ad6
Advertisement is now Update; started bit is now running.
2019-07-01 15:46:25 +01:00
Milos Gajdos
9d7420658d
Changed router interface. Added table watcher. Advertise routes
...
* Changed router interface to return Advertisement channel
* Added default gateway route to the routing table if supplied
* Watch table for updates and advertise to the network
* We hash the routes on 3-tuple (Destination, Gateway, Network)
2019-07-01 15:46:25 +01:00
Asim Aslam
0971deb9cc
Merge pull request #558 from micro/network
...
Networking code
2019-07-01 12:12:23 +01:00
Asim Aslam
0899282277
Checkpoint networking code
2019-07-01 11:55:15 +01:00
Asim Aslam
d8e998ad85
add peer in context
2019-06-27 14:53:01 +01:00
Asim Aslam
b4b76d452a
Call advertise
2019-06-27 14:38:12 +01:00
Asim Aslam
67e3d560fe
Lookup every service. FML
2019-06-27 14:37:52 +01:00
Asim Aslam
9630e153a5
fix grpc proto wrapper
2019-06-27 13:08:06 +01:00
Asim Aslam
43297f731c
Add default router
2019-06-27 12:57:23 +01:00
Asim Aslam
f6f6e1b561
Use the router to get routes
2019-06-27 12:56:52 +01:00
Asim Aslam
4bee5c1b2b
Merge pull request #546 from lpxxn/master
...
pass parameter to anonymous function
2019-06-27 07:02:45 +01:00
lpxxn
3b0ef425b6
pass parameter to anonymous function
2019-06-27 13:06:53 +08:00
李鹏
5334203435
Merge pull request #4 from micro/master
...
pull
2019-06-27 13:01:14 +08:00
Asim Aslam
0da8256426
Accept a range of addresses
2019-06-26 20:51:13 +01:00
Asim Aslam
940ea94a96
Lookup router via registry
2019-06-26 19:56:40 +01:00
Asim Aslam
b904f383c1
go fmt
2019-06-26 19:28:30 +01:00
Asim Aslam
cedcef032d
Add remote lookup via router selector
2019-06-26 19:27:38 +01:00
Milos Gajdos
76011b151d
Bugfix: Set gateway to node.Address
...
gw has not been initialized; it was basically an empty string and only
got populated by Sprintf-ing the addr:port IF the port has been set.
This commit sets the gw to node.Address to it's never an empty string.
2019-06-26 16:28:33 +01:00
Asim Aslam
27b145f968
add router proto
2019-06-26 16:23:10 +01:00
Asim Aslam
ac098e4d78
add router selector and network defaults
2019-06-26 16:12:57 +01:00
Asim Aslam
1a62c11166
Merge pull request #544 from milosgajdos83/router-rework
...
Router rework
2019-06-26 16:08:12 +01:00
Milos Gajdos
fe84a2d726
Route per service node. No Network Registry for now.
2019-06-26 16:03:19 +01:00
李鹏
c282125f09
Merge pull request #3 from micro/master
...
update
2019-06-26 11:56:00 +08:00
Asim Aslam
4cad7697cc
Merge pull request #542 from magodo/config_consul_source_opt
...
Add consul-specific option for config (as registry)
2019-06-25 16:14:03 +01:00
magodo
a8dbca756c
rename stuff per feedback
2019-06-25 22:41:31 +08:00
magodo
8e4fd16aff
Add consul-specific option for config (as registry)
2019-06-25 18:31:32 +08:00
Asim Aslam
68764ebafc
Add registry resolver
2019-06-24 15:30:17 +01:00
Asim Aslam
4d08618517
fix typo
2019-06-24 15:22:12 +01:00
Asim Aslam
e5959f80d6
add http resolver
2019-06-24 15:21:24 +01:00
Asim Aslam
b89423bf37
add resolver
2019-06-24 15:11:11 +01:00
Asim Aslam
9a56c4e0b2
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-06-24 14:49:26 +01:00
Asim Aslam
4f982bb9cd
Default to json content-type in api
2019-06-24 14:49:19 +01:00
Asim Aslam
1277f2478d
Merge pull request #541 from milosgajdos83/gossip-del-service-revert
...
Reverts c0a628d
2019-06-22 20:05:10 +01:00
Asim Aslam
dffbe045e4
move node functions
2019-06-22 19:02:57 +01:00
Milos Gajdos
c3d2043caf
Reverts c0a628d65b
...
Fixes #540
2019-06-22 19:01:03 +01:00
Asim Aslam
79cc8e34b0
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-06-22 16:51:28 +01:00
Asim Aslam
2d91ba411e
update the network interface
2019-06-22 16:51:20 +01:00
Asim Aslam
5ee7140aa3
Merge pull request #536 from magodo/config_source_consul_support_array
...
Config source consul support 1st array
2019-06-22 08:39:17 +01:00
magodo
6ef838c9aa
Merge branch 'master' of https://github.com/micro/go-micro into config_source_consul_support_array
2019-06-22 07:14:15 +08:00
Asim Aslam
1b4005e9a5
Go fmt everything
2019-06-21 17:20:41 +01:00
Asim Aslam
3f97743e34
Move router and proxy into network package
2019-06-21 17:20:31 +01:00
Asim Aslam
7936d74602
Update comments
2019-06-21 16:17:12 +01:00
Asim Aslam
6db720b197
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-06-21 15:14:08 +01:00
Asim Aslam
ca5acba0c6
Move selector to client/selector
2019-06-21 15:13:54 +01:00
Asim Aslam
b4acb9bb58
Merge pull request #538 from magodo/consul_path_prefix_leading_slash
...
config consul source supports slash as prefix
2019-06-21 14:23:53 +01:00
Asim Aslam
c350e19552
Move cmd => config/cmd
2019-06-21 13:36:11 +01:00
Asim Aslam
4aa0192eba
Update go mod
2019-06-21 12:55:31 +01:00
magodo
3c82b2e9e8
Merge branch 'consul_path_prefix_leading_slash' into dev
2019-06-21 16:53:21 +08:00
magodo
9514bd7b2a
Merge branch 'config_source_consul_support_array' into dev
2019-06-21 16:52:01 +08:00
magodo
7acd249147
config consul source supports slash as prefix
...
`config.NewConfig()` with consul source will both read from consul
and watch consul for changes. Hence, the `prefix` is used in these
2 cases:
- read case: it is used to strip path based on the `KVPair` returned
from consul `kv.List()` method
- watch case: it is used as the `key` of watch query (`keyprefix` type)
So for *watch case*, the `key` is leagal to be `/` for watching change
on root. While for *read case*, because `KVPair.Key` is always stripped
off the leading slash, so if user specified some `prefix` with leading
slash, we should strip it also.
An extream case would be: user want's to read & watch node in root dir.
One would specify `prefix` as `/`, and it should work then.
2019-06-21 16:35:48 +08:00
magodo
1983b4ae92
variable rename to abstract encoder
2019-06-21 15:30:45 +08:00
magodo
92b998c3ab
consul config source support 1st-level array
...
Check whetehr the 1st level encoded json is array or not, to
support 1st level array in consul config.
During debug, i suspected the incapability of arrray is caused by
json reader, so i added test for array. I think it makes no harm
to also check that in.
2019-06-21 00:25:39 +08:00
Milos Gajdos
1765be049b
router.Start() is now router.Advertise(). Updated code documentation.
2019-06-20 13:04:58 +01:00
Asim Aslam
8d5d812e32
Fix a streaming bug
2019-06-20 12:44:51 +01:00
Asim Aslam
3f910038a3
Move store to data/store
2019-06-19 22:04:13 +01:00
Asim Aslam
a8042adac1
Merge pull request #528 from milosgajdos83/router
...
Adds router package
2019-06-19 21:33:39 +01:00
Milos Gajdos
10a3636a9f
Renamed variables, options and functions
2019-06-19 21:22:14 +01:00
Milos Gajdos
4e5fbbf7eb
Replaced the debug network string by the correct router local address.
2019-06-19 18:11:16 +01:00
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
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
Asim Aslam
000e25a4b2
use the router
2019-06-12 12:05:34 +01:00
Asim Aslam
7a1cef46b0
fix broken links
2019-06-12 07:50:04 +01:00
Asim Aslam
a5412dd4a0
Move data to store
2019-06-12 07:46:20 +01:00
Asim Aslam
f81f66c98b
Move DB to Map
2019-06-11 18:21:33 +01:00
Asim Aslam
43ed8f58f0
change wording
2019-06-11 18:15:18 +01:00
Asim Aslam
7727b359c8
Add memory data store
2019-06-11 17:49:34 +01:00
Asim Aslam
8e4e710e15
Move data to top level
2019-06-11 17:20:52 +01:00
Asim Aslam
4d4686d9be
Merge branch 'master' into crufting
2019-06-11 15:38:12 +01:00
Asim Aslam
6d06ee8078
Update go.mod to strip etcd
2019-06-11 11:40:37 +01:00
Asim Aslam
aec1ca6635
remove etcd source
2019-06-11 09:53:06 +01:00
Asim Aslam
235a653f78
check in cruft
2019-06-11 09:52:35 +01:00
Asim Aslam
d030c78d1c
Merge pull request #509 from outshow/master
...
fix etcd error
2019-06-11 09:52:21 +01:00
outshow
90a9df9b8c
1. use github.com/coreos instead of go.etcd.io in etcd related import path; 2. add dialtimeout to etcd client
2019-06-11 16:18:37 +08:00
Asim Aslam
070bd40b4c
Merge branch 'master' into crufting
2019-06-10 12:44:27 +01:00
Asim Aslam
46de3ae9a9
Fix text codec
2019-06-10 12:42:43 +01:00
Asim Aslam
b6833e478d
Merge pull request #506 from milosgajdos83/consul-close-watcher
...
Return registry.ErrWatcherStopped when consul watcher stops
2019-06-09 16:03:06 +01:00
Milos Gajdos
73b0a0ed0e
Return registry.ErrWatcherStopped when consul watcher stops.
...
The original code returns "result chan closed" errors.Error which does
not carry higher semantics signal to downstream despite go-micro having
a clearly defined Error for this behaviour. This commit fixes that and
lets the downstream i.e. consumer of this code to act based on different
errors.
2019-06-09 15:51:27 +01:00
Asim Aslam
7c4515d748
Merge pull request #504 from magodo/json_pb_support
...
unmarshal json with `jsonpb` if accepter is pb
2019-06-09 08:57:55 +01:00
magodo
748c20c979
use package level func for unmarshal
2019-06-09 11:55:36 +08:00
magodo
3573ac818f
unmarshal json with jsonpb if accepter is pb
2019-06-09 11:50:50 +08:00
Asim Aslam
ed4bce3285
check in this cruft
2019-06-08 19:40:44 +01:00
Asim Aslam
95b8147fa1
Merge pull request #501 from micro/wrap
...
add the wrappers back into the core router
2019-06-07 15:22:16 +01:00
Asim Aslam
f5ac238231
Include the decoded body
2019-06-07 15:15:22 +01:00
Asim Aslam
bfdec9e2e3
add the wrappers back into the core router
2019-06-07 15:02:19 +01:00
Asim Aslam
a2fbf19341
Move sync deps, change uuid to google and update go.mod
2019-06-07 13:53:42 +01:00
Asim Aslam
9e23855c37
Fixup the proxy, strip down go.mod. Win bigly
2019-06-07 13:42:39 +01:00
Asim Aslam
d65393a799
add top level options comment
2019-06-07 11:18:08 +01:00
Asim Aslam
ef67dc7ceb
Merge pull request #500 from leaxoy/clean-mod
...
cleanup go.mod remove replace section
2019-06-07 11:14:53 +01:00
Asim Aslam
c317daf6b8
update proxy/options
2019-06-06 21:45:28 +01:00
lixiaohui
1152c7cb03
cleanup go.mod remove replace section
2019-06-07 03:05:33 +08:00
Asim Aslam
2cc18d6edc
fix errors
2019-06-06 17:58:21 +01:00
Asim Aslam
a58bc8e75c
add proxy interface and move router packages
2019-06-06 17:55:32 +01:00
Asim Aslam
64459c54a1
move init to options
2019-06-06 17:54:30 +01:00
Asim Aslam
c60b5a45bb
Add proxy interface
2019-06-06 17:49:41 +01:00
Asim Aslam
94772a8cc7
remove the proto from proxy package
2019-06-06 17:38:05 +01:00
Asim Aslam
52613190b0
remove micro.png
2019-06-06 17:08:04 +01:00
Milos Gajdos
a29ce20e31
Changed default NATS address to nats://127.0.0.1:4222 in nats test
2019-06-06 12:06:14 +01:00
Asim Aslam
d59b693fa6
update interface
2019-06-06 11:46:13 +01:00
Asim Aslam
deee4dcd6a
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-06-06 11:32:42 +01:00
Asim Aslam
ab7d036697
add init package
2019-06-06 11:32:38 +01:00
Milos Gajdos
de87dfb6a0
Added gitignore file to avoid committing unnecessary files
2019-06-06 10:56:20 +01:00
Asim Aslam
0f70281e28
remove swp file
2019-06-06 09:52:22 +01:00
Asim Aslam
9d5cde42a3
Add top level proxy comment
2019-06-06 09:50:25 +01:00
Asim Aslam
83f46d9c9d
top level package comment for service
2019-06-06 09:02:00 +01:00
Asim Aslam
19de02646e
Merge pull request #497 from unistack-org/logf
...
server fix log.Log -> log.Logf
2019-06-05 14:33:51 +01:00
695c546385
server fix log.Log -> log.Logf
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-06-05 15:09:26 +03:00
Asim Aslam
953f41aeab
Fix go mod issues
2019-06-05 10:22:28 +01:00
Asim Aslam
512d719470
fix imports
2019-06-05 06:39:56 +01:00