reliable_conn

package module
v0.0.0-...-7cb4599 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *logrus.Logger

Functions

func Dial

func Dial(network, address string) (net.Conn, error)

func DialWithDialer

func DialWithDialer(network, address string, dialer Dialer) (net.Conn, error)

Types

type Dialer

type Dialer func(network, address string) (net.Conn, error)

type ReliableConn

type ReliableConn struct {
	Network string
	Address string
	Backoff backoff.BackOff
	// contains filtered or unexported fields
}

func (*ReliableConn) Close

func (this *ReliableConn) Close() error

func (*ReliableConn) Connect

func (this *ReliableConn) Connect()

func (*ReliableConn) LocalAddr

func (this *ReliableConn) LocalAddr() net.Addr

func (*ReliableConn) Read

func (this *ReliableConn) Read(b []byte) (n int, err error)

func (*ReliableConn) RemoteAddr

func (this *ReliableConn) RemoteAddr() net.Addr

func (*ReliableConn) SetDeadline

func (this *ReliableConn) SetDeadline(t time.Time) error

func (*ReliableConn) SetReadDeadline

func (this *ReliableConn) SetReadDeadline(t time.Time) error

func (*ReliableConn) SetWriteDeadline

func (this *ReliableConn) SetWriteDeadline(t time.Time) error

func (*ReliableConn) Write

func (this *ReliableConn) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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