dialers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: LGPL-2.1 Imports: 7 Imported by: 0

Documentation

Overview

Ytl Copyright (C) 2022 DomesticMoth <silkmoth@protonmail.com>

This file is part of Ytl.

Ytl is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

Ytl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TcpDialer

type TcpDialer struct {
	Timeout   time.Duration `default:"2m"`
	KeepAlive time.Duration `default:"15s"`
	Control   func(network, address string, c syscall.RawConn) error
}

func (*TcpDialer) Dial

func (d *TcpDialer) Dial(uri url.URL, proxy *url.URL) (net.Conn, error)

func (*TcpDialer) DialContext

func (d *TcpDialer) DialContext(ctx context.Context, uri url.URL, proxy_uri *url.URL) (net.Conn, error)

Jump to

Keyboard shortcuts

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