net

package
v1.0.20250928075430 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDialer

func CheckDialer() *net.Dialer

func SockConn

func SockConn(ctx context.Context, daemon string, opts ConnOptions) (net.Conn, error)

Types

type ConnOptions

type ConnOptions struct {
	Timeout   time.Duration
	TLSConfig *tls.Config
}

type ProtocolDialer

type ProtocolDialer interface {
	DialContext(ctx context.Context, address string, opts ConnOptions) (net.Conn, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL