Logo
Explore Help
Sign In
TheArchive/headscale
1
0
Fork 0
You've already forked headscale
mirror of https://github.com/juanfont/headscale.git synced 2025-05-11 01:48:54 +00:00
Code Issues Packages Projects Releases Wiki Activity
headscale/hscontrol/util/net.go

13 lines
182 B
Go
Raw Normal View History

create DB struct 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>
2023-05-11 09:09:18 +02:00
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)
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 57ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API