Documentation ¶
Index ¶
- type Backend
- type EMail
- type InMemoryBackend
- func (backend *InMemoryBackend) AnonymousLogin(c *smtp.ConnectionState) (smtp.Session, error)
- func (b *InMemoryBackend) Cleanup(deadline time.Time)
- func (b *InMemoryBackend) GetEmailById(id int) *EMail
- func (b *InMemoryBackend) GetEmailsByAlias(alias string) []*EMail
- func (b *InMemoryBackend) GetProcessedEmails() int
- func (b *InMemoryBackend) IsAcceptedDomain(email string) bool
- func (backend *InMemoryBackend) Login(_ *smtp.ConnectionState, username, password string) (smtp.Session, error)
- func (backend *InMemoryBackend) NewSession(c smtp.ConnectionState, _ string) (smtp.Session, error)
- func (b *InMemoryBackend) SaveEmail(email *EMail)
- type RedisBackend
- func (backend *RedisBackend) AnonymousLogin(c *smtp.ConnectionState) (smtp.Session, error)
- func (b *RedisBackend) Cleanup(deadline time.Time)
- func (b *RedisBackend) GetEmailById(id int) *EMail
- func (b *RedisBackend) GetEmailsByAlias(alias string) []*EMail
- func (b *RedisBackend) GetProcessedEmails() int
- func (b *RedisBackend) IsAcceptedDomain(email string) bool
- func (backend *RedisBackend) Login(_ *smtp.ConnectionState, username, password string) (smtp.Session, error)
- func (backend *RedisBackend) NewSession(c smtp.ConnectionState, _ string) (smtp.Session, error)
- func (b *RedisBackend) SaveEmail(email *EMail)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type InMemoryBackend ¶
type InMemoryBackend struct { MaxStoredMessage int AcceptedDomains []string AcceptSubdomains bool // contains filtered or unexported fields }
func (*InMemoryBackend) AnonymousLogin ¶
func (backend *InMemoryBackend) AnonymousLogin(c *smtp.ConnectionState) (smtp.Session, error)
func (*InMemoryBackend) Cleanup ¶
func (b *InMemoryBackend) Cleanup(deadline time.Time)
func (*InMemoryBackend) GetEmailById ¶
func (b *InMemoryBackend) GetEmailById(id int) *EMail
func (*InMemoryBackend) GetEmailsByAlias ¶
func (b *InMemoryBackend) GetEmailsByAlias(alias string) []*EMail
func (*InMemoryBackend) GetProcessedEmails ¶
func (b *InMemoryBackend) GetProcessedEmails() int
func (*InMemoryBackend) IsAcceptedDomain ¶
func (b *InMemoryBackend) IsAcceptedDomain(email string) bool
func (*InMemoryBackend) Login ¶
func (backend *InMemoryBackend) Login(_ *smtp.ConnectionState, username, password string) (smtp.Session, error)
func (*InMemoryBackend) NewSession ¶
func (backend *InMemoryBackend) NewSession(c smtp.ConnectionState, _ string) (smtp.Session, error)
func (*InMemoryBackend) SaveEmail ¶
func (b *InMemoryBackend) SaveEmail(email *EMail)
type RedisBackend ¶
type RedisBackend struct {
// contains filtered or unexported fields
}
func (*RedisBackend) AnonymousLogin ¶
func (backend *RedisBackend) AnonymousLogin(c *smtp.ConnectionState) (smtp.Session, error)
func (*RedisBackend) Cleanup ¶
func (b *RedisBackend) Cleanup(deadline time.Time)
func (*RedisBackend) GetEmailById ¶
func (b *RedisBackend) GetEmailById(id int) *EMail
func (*RedisBackend) GetEmailsByAlias ¶
func (b *RedisBackend) GetEmailsByAlias(alias string) []*EMail
func (*RedisBackend) GetProcessedEmails ¶
func (b *RedisBackend) GetProcessedEmails() int
func (*RedisBackend) IsAcceptedDomain ¶
func (b *RedisBackend) IsAcceptedDomain(email string) bool
func (*RedisBackend) Login ¶
func (backend *RedisBackend) Login(_ *smtp.ConnectionState, username, password string) (smtp.Session, error)
func (*RedisBackend) NewSession ¶
func (backend *RedisBackend) NewSession(c smtp.ConnectionState, _ string) (smtp.Session, error)
func (*RedisBackend) SaveEmail ¶
func (b *RedisBackend) SaveEmail(email *EMail)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.