Commit Graph

385 Commits

Author SHA1 Message Date
ad418b5905 small fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 01:56:02 +03:00
78ef338fe3 fix service caching
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 01:43:34 +03:00
017f5600e7 reuse helpers for register/deregister
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 01:23:36 +03:00
ef9ccf1615 fix logger usage
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 00:50:40 +03:00
46ed1f8fa4 fix for latest micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-03 02:15:31 +03:00
edaf9eaaa6 proper fill server metadata
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-29 21:11:24 +03:00
2f6c352a57 restart server on Init
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-16 16:15:39 +03:00
e6f7ceb900 fixup for never micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-16 12:29:28 +03:00
bc66ccb9d3 use helper
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-09 17:47:48 +03:00
d907057790 add missing metadata
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-09 17:44:04 +03:00
ff05219e28 use helper
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-09 17:42:55 +03:00
4209736cb8 move extractor to micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-09 16:26:35 +03:00
0d3d13b7ab add warning when handler returns not *errors.Error or proto.Message error type
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-08 13:42:27 +03:00
a41e085d18 not use internal protobuf to transfer error
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-08 13:18:23 +03:00
4cfa421f97 fix proto types
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-08 12:39:13 +03:00
371cc6044c fix proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-29 10:42:12 +03:00
9a9b5b43ba fix proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-29 10:33:23 +03:00
c62755cdae move errors to internal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-28 12:12:52 +03:00
babd4f75b6 fix proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-24 15:54:36 +03:00
830e8ebadd cleanup
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-22 12:38:40 +03:00
0fe1f38a2f move test to dedicated repo
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-22 12:22:30 +03:00
aa9d104ec4 add missing reflection file
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 16:12:08 +03:00
4a780fc76a Merge branch 'upstream' 2020-09-20 16:10:06 +03:00
a456e61968 add marker flag for sync
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 16:10:02 +03:00
2c03ee8ec6 use own fork
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 16:08:45 +03:00
4c65c013e5 use server context when create handler context
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 15:22:13 +03:00
wangxu
a186c70446 add log grpc handler err (#1973)
Co-authored-by: wangxu <wangxu@oneniceapp.com>
2020-09-20 15:11:09 +03:00
Asim Aslam
724f1bcb70 move transport (#1967) 2020-09-20 15:11:09 +03:00
Asim Aslam
67f3adcafd Revert "grpc: avoid allocations for each message (#1939)" (#1941)
This reverts commit 2a23224d911b0aeccf0614afb937a18ad7d59bca.
2020-09-20 15:11:09 +03:00
a8144c0d7c grpc: avoid allocations for each message (#1939)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 15:11:09 +03:00
Asim Aslam
242c0acf1e Decruft the broker by removing Event interface (#1940) 2020-09-20 15:11:09 +03:00
zuoan
03af0bddc6 simplifies code (#1934)
Co-authored-by: 刘海洋 <haiyang@snqu.com>
2020-09-20 15:11:09 +03:00
Asim Aslam
ed139b1fdd cleanup debug and transport (#1920) 2020-09-20 15:11:09 +03:00
Asim Aslam
f2c5da457e remove print statement 2020-09-20 15:11:09 +03:00
Asim Aslam
393577e5e6 add a noop registry 2020-09-20 15:11:09 +03:00
Asim Aslam
c258ff3ca4 embed grpc server stream and client so they can be accessed (#1916) 2020-09-20 15:11:09 +03:00
Asim Aslam
9365b1fe9b Add subscriber naem 2020-09-20 15:11:09 +03:00
Asim Aslam
3703769758 Return service name in error 2020-09-20 15:11:09 +03:00
Asim Aslam
522e04840c ensure register ttl and interval are set 2020-09-20 15:11:09 +03:00
Asim Aslam
b021fcb130 v3 refactor (#1868)
* Move to v3

Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2020-09-20 15:11:09 +03:00
Asim Aslam
c69131b98c fix grpc test 2020-09-20 15:11:09 +03:00
Asim Aslam
04cfa870dd remove auth provider 2020-09-20 15:11:09 +03:00
王旭
b1988daa4e server.Init(Wait(nil)) update server options context (#1804)
Co-authored-by: wangxu <wangxu@oneniceapp.com>
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-09-20 15:11:09 +03:00
Enix Yu
f6ff36f501 Add recover in grpc service handler (#1727)
* 🐛 bug(grpc): add missing recover in grpc unkonwn service handler

* Add grpc handler recover testcases

* improve test case

Co-authored-by: ben-toogood <bentoogood@gmail.com>
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-09-20 15:11:09 +03:00
ben-toogood
b26f4d8dd0 Deprecate client/selector (#1767)
* client/{grpc,rpc}: depricate selector (wip)

* {client,cmd}: remove client/selector

* deprecate client/selector

* router/static: fix lookup

* config/cmd: add support for legacy static selector flag

* config/cmd: add support for legacy dns selector flag
2020-09-20 15:11:09 +03:00
ben-toogood
12ac73e50b server/{grpc,rpc}: fix deregister domain bug (#1742)
* server/{grpc,rpc}: fix deregister domain bug

* server/grpc: remove unnecessary slice
2020-09-20 15:11:09 +03:00
ben-toogood
c58690b414 server: register in the services namespace (#1718) 2020-09-20 15:11:09 +03:00
ben-toogood
f815eed7fd util/wrapper: Add Static Client wrapper (#1685)
* util/wrapper: Add Static Client wrapper

* util/wrapper/static: pass address to stream too

* add static client wrapper tests

* server: fix error message spaces between words

* server/{rpc,grpc}: replace log.Error with log.Errorf

* server/grpc: fix log typo

* server/rpc: fix log typo

Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 15:11:09 +03:00
Asim Aslam
8c937eabb9 Registration Retry / Interval (#1651)
* Change the default ttl to 90 seconds

* add retries to registration

* Add retry to web register
2020-09-20 15:11:09 +03:00
Ben Toogood
95ffd9ca4a Auth Options 2020-09-20 15:11:09 +03:00