Asim Aslam
df687fe5d4
move selector
2020-12-12 20:14:50 +00:00
Jake Sanders
9216a47724
fix client race ( #1647 )
2020-05-19 14:44:46 +01:00
Vasiliy Tolstov
9bb1904a38
broker: add publish context ( #1590 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-28 19:29:00 +03:00
Asim Aslam
d7ecb58f6c
Add network proxying ( #1556 )
...
* Add network proxying
* go fmt
2020-04-21 15:54:40 +01:00
Asim Aslam
68b0238a5d
add stream timeout option which defaults to 0 ( #1456 )
...
* add stream timeout option which defaults to 0
* fix option
2020-03-31 23:22:11 +01:00
Vasiliy Tolstov
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
ben-toogood
1e40c86dfe
Ignore gRPC Proxy ( #1205 )
2020-02-17 08:14:45 +00:00
Asim Aslam
b3fc8be24e
normalise proxy name ( #1203 )
2020-02-15 21:57:30 +00:00
Vasiliy Tolstov
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
Vasiliy Tolstov
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
2b1844971c
go fmt
2020-01-24 21:31:57 +00:00
Asim Aslam
fac75866d9
Move pool to util
2020-01-19 17:30:49 +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
Asim Aslam
c445aed6b1
Cleanup and speedup network convergence along with direct messaging for connect and solicit
2019-12-07 19:54:29 +00:00
Astone
29fb58db39
improve code quality
2019-12-03 20:59:02 +08:00
Asim Aslam
00bbb3ac61
revert some protocol changes for now
2019-11-30 21:20:33 +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
afa1f50435
Revert to creating new connections for stream
2019-09-25 15:21:21 +01:00
Asim Aslam
52d9d75dfa
use with stream for client connection
2019-08-31 18:26:48 +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
58bc4c103f
go fmt
2019-08-15 20:54:09 +01:00
Asim Aslam
ef04331b86
multiplexing cruft
2019-08-15 20:08:49 +01: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
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
Vasiliy Tolstov
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
Asim Aslam
64ec0633a3
Fix breaks and go fmt
2019-07-10 07:47:17 +01:00
Asim Aslam
0bf54c122f
move transport back
2019-07-09 18:41:26 +01:00
Asim Aslam
e0bf1c2283
Remove Port from registry
2019-07-08 08:01:42 +01:00
Asim Aslam
4b4ad68eb9
Change Publication to Event
2019-07-07 12:44:09 +01:00
Asim Aslam
777a203f96
gofmt
2019-07-07 12:33:54 +01:00
Asim Aslam
d2d6841f02
Move transport to network/transport
2019-07-07 10:37:34 +01:00
Asim Aslam
0da8256426
Accept a range of addresses
2019-06-26 20:51:13 +01:00
Asim Aslam
1b4005e9a5
Go fmt everything
2019-06-21 17:20:41 +01:00
Asim Aslam
ca5acba0c6
Move selector to client/selector
2019-06-21 15:13:54 +01:00
Asim Aslam
ed4bce3285
check in this cruft
2019-06-08 19:40:44 +01:00
Asim Aslam
9e23855c37
Fixup the proxy, strip down go.mod. Win bigly
2019-06-07 13:42:39 +01:00
lpxxn
a86c26d485
fix bug need pass the variable as a parameter to the anonymous function
2019-05-31 14:24:37 +08:00
Asim Aslam
f824ba0779
non-blocking call chan when retries are 0
2019-04-18 09:05:22 +00:00
Asim Aslam
b8f20924cc
proxy publish
2019-02-23 17:06:17 +00:00
Asim Aslam
58adaef339
Add Exchange option
2019-02-23 10:50:53 +00:00
Asim Aslam
b1a31134bd
Support micro proxy
2019-01-30 18:42:11 +00:00
Asim Aslam
8090f9968d
Update headers to remove X- prefix
2019-01-24 10:11:02 +00:00
Asim Aslam
6468733d98
Use protocol from node metadata
2019-01-18 12:30:39 +00:00
Asim Aslam
c1d0237370
Add client response
2019-01-14 21:30:43 +00:00
Asim Aslam
9adebfcf1e
rename method to endpoint
2019-01-10 21:25:31 +00:00
Asim Aslam
40ff5b749b
Set topic header
2019-01-10 20:35:10 +00:00
Asim Aslam
648da5494f
Change a few things
2019-01-10 11:39:39 +00:00
Asim Aslam
4cb41721f1
further codec changes
2019-01-08 15:38:25 +00:00