Milos Gajdos
e607485c6b
Check for token in every received message.
2019-08-14 01:23:03 +01: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