smtpmocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Auth

func (_m *Client) Auth(a smtp.Auth) error

Auth provides a mock function with given fields: a

func (*Client) Close

func (_m *Client) Close() error

Close provides a mock function with given fields:

func (*Client) Data

func (_m *Client) Data() (io.WriteCloser, error)

Data provides a mock function with given fields:

func (*Client) Extension

func (_m *Client) Extension(ext string) (bool, string)

Extension provides a mock function with given fields: ext

func (*Client) Hello

func (_m *Client) Hello(localName string) error

Hello provides a mock function with given fields: localName

func (*Client) Mail

func (_m *Client) Mail(from string) error

Mail provides a mock function with given fields: from

func (*Client) Noop

func (_m *Client) Noop() error

Noop provides a mock function with given fields:

func (*Client) Quit

func (_m *Client) Quit() error

Quit provides a mock function with given fields:

func (*Client) Rcpt

func (_m *Client) Rcpt(to string) error

Rcpt provides a mock function with given fields: to

func (*Client) Reset

func (_m *Client) Reset() error

Reset provides a mock function with given fields:

func (*Client) StartTLS

func (_m *Client) StartTLS(config *tls.Config) error

StartTLS provides a mock function with given fields: config

func (*Client) TLSConnectionState

func (_m *Client) TLSConnectionState() (tls.ConnectionState, bool)

TLSConnectionState provides a mock function with given fields:

func (*Client) Verify

func (_m *Client) Verify(addr string) error

Verify provides a mock function with given fields: addr

type Connecter

type Connecter struct {
	mock.Mock
}

Connecter is an autogenerated mock type for the Connecter type

func (*Connecter) SMTPConnect

func (_m *Connecter) SMTPConnect(hostname string) (smtputil.Client, error)

SMTPConnect provides a mock function with given fields: hostname

Jump to

Keyboard shortcuts

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