sing/common/network/dialer.go
2022-04-16 17:00:07 +08:00

12 lines
205 B
Go

package network
import (
"context"
"net"
)
type ContextDialer interface {
DialContext(ctx context.Context, network, address string) (net.Conn, error)
}
var SystemDialer ContextDialer = &net.Dialer{}