Documentation ¶
Index ¶
- func Recv(conn net.Conn, timeout time.Duration) ([]byte, error)
- func Send(conn net.Conn, data []byte, timeout time.Duration) error
- func SendRecv(conn net.Conn, data []byte, timeout time.Duration) ([]byte, error)
- type CloseDialError
- type CreateDialError
- type InvalidAddrProvided
- type InvalidResponseError
- type InvalidResponseErrorInfo
- type RandomizeError
- type ReadError
- type ReadTimeoutError
- type RequestError
- type ServerNotEnable
- type WriteError
- type WriteTimeoutError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloseDialError ¶
type CloseDialError struct { }
func (*CloseDialError) Error ¶
func (e *CloseDialError) Error() string
type CreateDialError ¶
type CreateDialError struct {
Message string
}
func (*CreateDialError) Error ¶
func (e *CreateDialError) Error() string
type InvalidAddrProvided ¶
type InvalidAddrProvided struct {
Service string
}
func (*InvalidAddrProvided) Error ¶
func (e *InvalidAddrProvided) Error() string
type InvalidResponseError ¶
type InvalidResponseError struct {
Service string
}
func (*InvalidResponseError) Error ¶
func (e *InvalidResponseError) Error() string
type InvalidResponseErrorInfo ¶
func (*InvalidResponseErrorInfo) Error ¶
func (e *InvalidResponseErrorInfo) Error() string
type RandomizeError ¶
type RandomizeError struct {
Message string
}
func (*RandomizeError) Error ¶
func (e *RandomizeError) Error() string
type ReadTimeoutError ¶
type ReadTimeoutError struct {
WrappedError error
}
func (*ReadTimeoutError) Error ¶
func (e *ReadTimeoutError) Error() string
func (*ReadTimeoutError) Unwrap ¶
func (e *ReadTimeoutError) Unwrap() error
type RequestError ¶
type RequestError struct {
Message string
}
func (*RequestError) Error ¶
func (e *RequestError) Error() string
type ServerNotEnable ¶
type ServerNotEnable struct { }
func (*ServerNotEnable) Error ¶
func (e *ServerNotEnable) Error() string
type WriteError ¶
type WriteError struct {
WrappedError error
}
func (*WriteError) Error ¶
func (e *WriteError) Error() string
func (*WriteError) Unwrap ¶
func (e *WriteError) Unwrap() error
type WriteTimeoutError ¶
type WriteTimeoutError struct {
WrappedError error
}
func (*WriteTimeoutError) Error ¶
func (e *WriteTimeoutError) Error() string
func (*WriteTimeoutError) Unwrap ¶
func (e *WriteTimeoutError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.