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