network

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func Adapter

func Adapter(err error) *Error

Adapter returns an Error if the pass-in error is a network error; otherwise, nil will be returned.

func (Error) Error

func (e Error) Error() string

func (Error) IsConnRefusedError

func (e Error) IsConnRefusedError() bool

IsConnRefusedError returns true if an error is a "connection refused" error

func (Error) IsDialError

func (e Error) IsDialError() bool

IsDialError returns true if its a network dial error

func (Error) IsTimeoutError

func (e Error) IsTimeoutError() bool

IsTimeoutError returns true if its a network timeout error

func (Error) IsUnsupportedProtoScheme

func (e Error) IsUnsupportedProtoScheme() bool

IsUnsupportedProtoScheme returns true if an error is a "unsupported protocol scheme" error

Jump to

Keyboard shortcuts

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