Documentation ¶
Index ¶
- type InMemory
- func (im *InMemory) DeleteExpiredData()
- func (im *InMemory) EmailAddressExists(a string) (bool, error)
- func (im *InMemory) GetInboxByAddress(address string) (burner.Inbox, error)
- func (im *InMemory) GetInboxByID(id string) (burner.Inbox, error)
- func (im *InMemory) GetMessageByID(i, m string) (burner.Message, error)
- func (im *InMemory) GetMessagesByInboxID(id string) ([]burner.Message, error)
- func (im *InMemory) SaveNewInbox(i burner.Inbox) error
- func (im *InMemory) SaveNewMessage(m burner.Message) error
- func (im *InMemory) SetInboxCreated(i burner.Inbox) error
- func (im *InMemory) SetInboxFailed(i burner.Inbox) error
- func (im *InMemory) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemory ¶
type InMemory struct {
// contains filtered or unexported fields
}
InMemory implements an in memory database
func (*InMemory) DeleteExpiredData ¶
func (im *InMemory) DeleteExpiredData()
DeleteExpiredData deletes data that has expired according to its TTL
func (*InMemory) EmailAddressExists ¶
EmailAddressExists returns a bool depending on whether or not the given email address is already assigned to an inbox
func (*InMemory) GetInboxByAddress ¶
GetInboxByAddress gets an inbox by the given address
func (*InMemory) GetInboxByID ¶
GetInboxByID gets an inbox by the given inbox id
func (*InMemory) GetMessageByID ¶
GetMessageByID gets a single message by the given inbox and message id
func (*InMemory) GetMessagesByInboxID ¶
GetMessagesByInboxID returns all messages in a given inbox
func (*InMemory) SaveNewInbox ¶
SaveNewInbox saves a given inbox to memory
func (*InMemory) SaveNewMessage ¶
SaveNewMessage saves a given message to memory
func (*InMemory) SetInboxCreated ¶
SetInboxCreated updates the given inbox to reflect its created status
func (*InMemory) SetInboxFailed ¶
SetInboxFailed sets a given inbox as having failed to register with the mail provider