Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidUsernamePassword = errors.New("netconn: invalid username password")
ErrInvalidUsernamePassword ...
Functions ¶
This section is empty.
Types ¶
type FlushWriter ¶
FlushWriter ...
type NetConn ¶
type NetConn struct { Writer FlushWriter Reader io.Reader Closer io.Closer }
NetConn ...
func DialNewConn ¶
DialNewConn ...
type Option ¶
type Option func(conf *config)
Option ...
func WithTCPKeepAliveDuration ¶
WithTCPKeepAliveDuration sets the tcp keep alive duration
type PasswordAuth ¶ added in v0.5.4
type PasswordAuth struct {
// contains filtered or unexported fields
}
PasswordAuth is simple ASCII password authentication
func NewPasswordAuth ¶ added in v0.5.4
func NewPasswordAuth(username string, password string) (*PasswordAuth, error)
NewPasswordAuth ...
func (*PasswordAuth) GetDialFunc ¶ added in v0.5.4
func (a *PasswordAuth) GetDialFunc(dialFunc DialFunc) DialFunc
GetDialFunc ...
Click to show internal directories.
Click to hide internal directories.