Rough outline of tunnel types

This commit is contained in:
Milos Gajdos
2019-08-06 11:45:25 +01:00
parent 000431f489
commit 4074cce397
4 changed files with 97 additions and 7 deletions

25
tunnel/socket.go Normal file
View File

@@ -0,0 +1,25 @@
package tunnel
import "github.com/micro/go-micro/transport"
type tunSocket struct{}
func (s *tunSocket) Recv(m *transport.Message) error {
return nil
}
func (s *tunSocket) Send(m *transport.Message) error {
return nil
}
func (s *tunSocket) Close() error {
return nil
}
func (s *tunSocket) Local() string {
return ""
}
func (s *tunSocket) Remote() string {
return ""
}