Documentation ¶
Index ¶
- type Conn
- func (_m *Conn) Close() error
- func (_m *Conn) LocalAddr() net.Addr
- func (_m *Conn) Read(b []byte) (int, error)
- func (_m *Conn) RemoteAddr() net.Addr
- func (_m *Conn) SetDeadline(t time.Time) error
- func (_m *Conn) SetReadDeadline(t time.Time) error
- func (_m *Conn) SetWriteDeadline(t time.Time) error
- func (_m *Conn) Write(b []byte) (int, error)
- type Dialer
- func (_m *Dialer) Dial(network string, address string) (net.Conn, error)
- func (_m *Dialer) DialContext(ctx context.Context, network string, address string) (net.Conn, error)
- func (_m *Dialer) DialContextTLS(ctx context.Context, network string, address string, tlsConfig *tls.Config) (net.Conn, error)
- type Option
- type TextConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn is an autogenerated mock type for the Conn type
func NewConn ¶
func NewConn(t mockConstructorTestingTNewConn) *Conn
NewConn creates a new instance of Conn. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Conn) RemoteAddr ¶
RemoteAddr provides a mock function with given fields:
func (*Conn) SetDeadline ¶
SetDeadline provides a mock function with given fields: t
func (*Conn) SetReadDeadline ¶
SetReadDeadline provides a mock function with given fields: t
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline provides a mock function with given fields: t
type Dialer ¶
Dialer is an autogenerated mock type for the Dialer type
func NewDialer ¶
func NewDialer(t mockConstructorTestingTNewDialer) *Dialer
NewDialer creates a new instance of Dialer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Option ¶
Option is an autogenerated mock type for the Option type
func NewOption ¶
func NewOption(t mockConstructorTestingTNewOption) *Option
NewOption creates a new instance of Option. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Option) Execute ¶
func (_m *Option) Execute(conn *ftpconnection.ServerConnection) error
Execute provides a mock function with given fields: conn
type TextConnection ¶
TextConnection is an autogenerated mock type for the TextConnection type
func NewTextConnection ¶
func NewTextConnection(t mockConstructorTestingTNewTextConnection) *TextConnection
NewTextConnection creates a new instance of TextConnection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TextConnection) Close ¶
func (_m *TextConnection) Close() error
Close provides a mock function with given fields:
func (*TextConnection) Cmd ¶
func (_m *TextConnection) Cmd(format string, args ...interface{}) (uint, error)
Cmd provides a mock function with given fields: format, args
func (*TextConnection) ReadResponse ¶
func (_m *TextConnection) ReadResponse(expectedCode int) (int, string, error)
ReadResponse provides a mock function with given fields: expectedCode