dynamodb

package
v0.0.0-...-ffaa3c7 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func GetNewDynamoDB(table string) *DynamoDB

GetNewDynamoDB gets a new dynamodb database or panics

func (*DynamoDB) EmailAddressExists

func (d *DynamoDB) EmailAddressExists(a string) (bool, error)

EmailAddressExists returns a bool depending on whether or not the given email address is already assigned to an inbox

func (*DynamoDB) GetInboxByAddress

func (d *DynamoDB) GetInboxByAddress(address string) (burner.Inbox, error)

func (*DynamoDB) GetInboxByID

func (d *DynamoDB) GetInboxByID(id string) (burner.Inbox, error)

GetInboxByID gets an inbox by the given inbox id

func (*DynamoDB) GetMessageByID

func (d *DynamoDB) GetMessageByID(i, m string) (burner.Message, error)

GetMessageByID gets a single message by the given inbox and message id

func (*DynamoDB) GetMessagesByInboxID

func (d *DynamoDB) GetMessagesByInboxID(i string) ([]burner.Message, error)

GetMessagesByInboxID returns all messages in a given inbox

func (*DynamoDB) SaveNewInbox

func (d *DynamoDB) SaveNewInbox(i burner.Inbox) error

SaveNewInbox saves a given inbox to dynamodb

func (*DynamoDB) SaveNewMessage

func (d *DynamoDB) SaveNewMessage(m burner.Message) error

SaveNewMessage saves a given message to dynamodb

func (*DynamoDB) SetInboxCreated

func (d *DynamoDB) SetInboxCreated(i burner.Inbox) error

SetInboxCreated updates the given inbox to reflect its created status

func (*DynamoDB) SetInboxFailed

func (d *DynamoDB) SetInboxFailed(i burner.Inbox) error

SetInboxFailed sets a given inbox as having failed to register with the mail provider

func (*DynamoDB) Start

func (d *DynamoDB) Start() error

Jump to

Keyboard shortcuts

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