net

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDialer

func NewDialer(cfg *DialerConfig) *net.Dialer

NewDialer creates a new net.Dialer with the given configuration.

Types

type DialerConfig

type DialerConfig struct {
	Timeout   *comtime.Duration
	KeepAlive *comtime.Duration
}

DialerConfig is a configuration for a net.Dialer.

func (*DialerConfig) SetDefault

func (cfg *DialerConfig) SetDefault() *DialerConfig

SetDefault sets the default values for the DialerConfig.

Directories

Path Synopsis
testutils
Package httptestutils is a generated GoMock package.
Package httptestutils is a generated GoMock package.

Jump to

Keyboard shortcuts

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