Documentation ¶
Index ¶
- Variables
- func Dial(network, address string) (net.Conn, error)
- func DialWithDialer(network, address string, dialer Dialer) (net.Conn, error)
- type Dialer
- type ReliableConn
- func (this *ReliableConn) Close() error
- func (this *ReliableConn) Connect()
- func (this *ReliableConn) LocalAddr() net.Addr
- func (this *ReliableConn) Read(b []byte) (n int, err error)
- func (this *ReliableConn) RemoteAddr() net.Addr
- func (this *ReliableConn) SetDeadline(t time.Time) error
- func (this *ReliableConn) SetReadDeadline(t time.Time) error
- func (this *ReliableConn) SetWriteDeadline(t time.Time) error
- func (this *ReliableConn) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *logrus.Logger
Functions ¶
Types ¶
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) 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
Click to show internal directories.
Click to hide internal directories.