mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
14 lines
198 B
Go
14 lines
198 B
Go
package tunnel
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
"github.com/micro/go-micro/transport"
|
|
)
|
|
|
|
func newLink(s transport.Socket) *link {
|
|
return &link{
|
|
Socket: s,
|
|
id: uuid.New().String(),
|
|
}
|
|
}
|