251f06cc31
add context dialer option
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-11-16 23:58:24 +03:00
bd7dbe94ca
support response metadata
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-11-16 23:10:27 +03:00
b8dc821784
use backoff for lookup too
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-05-01 23:23:15 +03:00
42b93ce57e
pass timeout headers in proper format
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-03-21 14:09:08 +03:00
7c7c93521f
update workflows
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-03-05 19:14:01 +03:00
a1e7560d6f
update import paths
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-10-27 00:57:12 +03:00
acfab7e10c
update for latest micro
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-07-31 15:10:59 +03:00
6697ccddf2
use metadata header names
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-07-23 12:30:21 +03:00
d536140a5b
allow to publish body only
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-06-13 12:37:01 +03:00
db02559a00
limit send/recv msg size for streams too
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-06-05 16:24:29 +03:00
0fae2e1bdd
move default content type to const
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-05-24 23:11:10 +03:00
510fa4b379
lint ( #32 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-26 19:17:29 +03:00
a4683c0b78
drop AuthTLS option and use client TLSConfig option
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-20 12:21:40 +03:00
2bef21a001
minor content-type fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-16 17:07:12 +03:00
9030637204
cleanup
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-24 15:32:19 +03:00
2a6e2c72c1
use incoming/outgoing metadata
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-12 20:34:14 +03:00
0fe6470260
update for latest micro
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 16:12:28 +03:00
067cf68d23
fix stream wrapping
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-26 01:45:58 +03:00
7ef49b03ba
codec rewrite
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-26 01:18:35 +03:00
2ed58a202b
update metadata
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-18 12:24:58 +03:00
15a5d7d2cd
lint fix
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-28 10:07:30 +03:00
fb33535995
use own fork
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-18 18:27:29 +03:00
ben-toogood
0fda1710d8
client/grpc: fix stream closed bug ( #2009 )
...
* client/grpc: fix stream closed bug
* client/grpc: don't use dial context for the stream
2020-09-18 16:32:53 +03:00
Asim Aslam
7ef834f0a8
Revert "grpc: avoid allocations for each message ( #1939 )" ( #1941 )
...
This reverts commit 2a23224d911b0aeccf0614afb937a18ad7d59bca.
2020-09-18 16:32:53 +03:00
4cb6fca7e9
grpc: avoid allocations for each message ( #1939 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-18 16:32:53 +03:00
Asim Aslam
5756f43f12
cleanup client/selector/lookup ( #1937 )
...
* cleanup client/selector/lookup
* add mdns router, remove registry from client
* fix roundtripper
* remove comment
* fix compile issue
* fix mucp test
* fix api router
2020-09-18 16:32:53 +03:00
Asim Aslam
14743471af
return a micro error on lookup failure
2020-09-18 16:32:53 +03:00
Asim Aslam
1003b968cf
embed grpc server stream and client so they can be accessed ( #1916 )
2020-09-18 16:32:53 +03:00
ben-toogood
6cb3fad421
Fix proxy being overriden by default addresses ( #1886 )
2020-09-18 16:32:53 +03:00
ben-toogood
d31f820705
client: add proxy option ( #1885 )
...
* client: add proxy option
* client: add WithProxy CallOption
* use address option
* ProxyAddress => Proxy
2020-09-18 16:32:53 +03:00
Asim Aslam
046db9e178
v3 refactor ( #1868 )
...
* Move to v3
Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2020-09-18 16:32:53 +03:00
26e3c83c2d
make LookupRoute exported ( #1850 )
...
* make LookupRoute exported
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* add missing file
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-18 16:32:53 +03:00
456d0c25f6
client/grpc: dont use codec for raw bytes payload ( #1847 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-18 16:32:53 +03:00
ben-toogood
cb2fc6e24d
client/{grpc,rpc}: fix previous breaking change with CallFunc (router.Route vs registry.Node) ( #1781 )
2020-09-18 16:32:53 +03:00
ben-toogood
fa9c531ad9
client: add select options ( #1786 )
2020-09-18 16:32:53 +03:00
ben-toogood
422fd980e9
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-18 16:32:53 +03:00
ben-toogood
ea93f93b18
selector: use custom domain ( #1760 )
...
* util/wrapper: improve auth errors
* client: add network call option
* client/selector: add domain select option
* client/grpc: pass network option to selector
2020-09-18 16:32:53 +03:00
ben-toogood
9683d38d19
Apply wrappers to gRPC streams ( #1675 )
...
* Add wrappers to grpc streams
* Fix typo
2020-09-18 16:32:53 +03:00
Asim Aslam
ace96191fe
force codec on call not on dial ( #1599 )
2020-09-18 16:32:53 +03:00
Ben Toogood
a928fc196e
Auth Client Wrapper
2020-09-18 16:32:53 +03:00
750b6d4733
broker: add publish context ( #1590 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-18 16:32:53 +03:00
Asim Aslam
e9db13acab
Add network proxying ( #1556 )
...
* Add network proxying
* go fmt
2020-09-18 16:32:53 +03:00
Ben Toogood
dfd784d4fa
Set authorization header on grpc stream
2020-09-18 16:32:53 +03:00
Ben Toogood
1a06552877
Further Refactoring
2020-09-18 16:32:52 +03:00
Asim Aslam
5a443abaf1
add stream timeout option which defaults to 0 ( #1456 )
...
* add stream timeout option which defaults to 0
* fix option
2020-09-18 16:32:52 +03:00
Ben Toogood
f03cb96217
Fallback to service token
2020-09-18 16:32:52 +03:00
Ben Toogood
cd1f6fcdc2
ServicePrivileges => ServiceToken
2020-09-18 16:32:52 +03:00
Ben Toogood
c5e30c0e6e
Fixes for CLI login
2020-09-18 16:32:52 +03:00
Ben Toogood
84a7cab60b
WithServicePrivileges => ServicePrivileges
2020-09-18 16:32:52 +03:00
Ben Toogood
21a246ad02
Service => Service Auth
2020-09-18 16:32:52 +03:00