Documentation ¶
Index ¶
- type SQLDatabase
- func (s *SQLDatabase) EmailAddressExists(email string) (bool, error)
- func (s *SQLDatabase) GetInboxByAddress(address string) (burner.Inbox, error)
- func (s *SQLDatabase) GetInboxByID(id string) (burner.Inbox, error)
- func (s *SQLDatabase) GetMessageByID(i, m string) (burner.Message, error)
- func (s *SQLDatabase) GetMessagesByInboxID(id string) ([]burner.Message, error)
- func (s *SQLDatabase) RunTTLDelete() (int, error)
- func (s *SQLDatabase) SaveNewInbox(i burner.Inbox) error
- func (s *SQLDatabase) SaveNewMessage(m burner.Message) error
- func (s *SQLDatabase) SetInboxCreated(i burner.Inbox) error
- func (s *SQLDatabase) SetInboxFailed(i burner.Inbox) error
- func (s *SQLDatabase) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLDatabase ¶
SQLDatabase implements the database interface for sqldb
func (*SQLDatabase) EmailAddressExists ¶
func (s *SQLDatabase) EmailAddressExists(email string) (bool, error)
EmailAddressExists checks if an address already exists
func (*SQLDatabase) GetInboxByAddress ¶
func (s *SQLDatabase) GetInboxByAddress(address string) (burner.Inbox, error)
GetInboxByAddress gets an inbox by address
func (*SQLDatabase) GetInboxByID ¶
func (s *SQLDatabase) GetInboxByID(id string) (burner.Inbox, error)
GetInboxByID gets an inbox by id
func (*SQLDatabase) GetMessageByID ¶
func (s *SQLDatabase) GetMessageByID(i, m string) (burner.Message, error)
GetMessageByID gets a single message
func (*SQLDatabase) GetMessagesByInboxID ¶
func (s *SQLDatabase) GetMessagesByInboxID(id string) ([]burner.Message, error)
GetMessagesByInboxID gets all messages for an inbox
func (*SQLDatabase) RunTTLDelete ¶
func (s *SQLDatabase) RunTTLDelete() (int, error)
RunTTLDelete runs the TTL delete process
func (*SQLDatabase) SaveNewInbox ¶
func (s *SQLDatabase) SaveNewInbox(i burner.Inbox) error
SaveNewInbox saves a new inbox
func (*SQLDatabase) SaveNewMessage ¶
func (s *SQLDatabase) SaveNewMessage(m burner.Message) error
SaveNewMessage saves a new message to the db
func (*SQLDatabase) SetInboxCreated ¶
func (s *SQLDatabase) SetInboxCreated(i burner.Inbox) error
SetInboxCreated creates a new inbox
func (*SQLDatabase) SetInboxFailed ¶
func (s *SQLDatabase) SetInboxFailed(i burner.Inbox) error
SetInboxFailed sets a given inbox as having failed to register with the mail provider
func (*SQLDatabase) Start ¶
func (s *SQLDatabase) Start() error
Click to show internal directories.
Click to hide internal directories.