mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-10 17:12:33 +08:00
14e29a7bee
This is step one in detaching the Database layer from Headscale (h). The ultimate goal is to have all function that does database operations in its own package, and keep the business logic and writing separate. Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
12 lines
182 B
Go
12 lines
182 B
Go
package util
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
)
|
|
|
|
func GrpcSocketDialer(ctx context.Context, addr string) (net.Conn, error) {
|
|
var d net.Dialer
|
|
|
|
return d.DialContext(ctx, "unix", addr)
|
|
}
|