sutils

package
v2.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2014 License: BSD-3-Clause, GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTcpDialer = &TcpDialer{}

Functions

func CopyLink(dst, src io.ReadWriteCloser)

func CoreCopy

func CoreCopy(dst io.Writer, src io.Reader) (written int64, err error)

Types

type Dialer

type Dialer interface {
	Dial(string, string) (net.Conn, error)
}

type Lookuper

type Lookuper interface {
	LookupIP(host string) (addrs []net.IP, err error)
}

type TcpDialer

type TcpDialer struct {
}

func (*TcpDialer) Dial

func (td *TcpDialer) Dial(network, address string) (conn net.Conn, err error)

Jump to

Keyboard shortcuts

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