dynamostore

package
v0.0.0-...-f8624db Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg aws.Config) store.Store

Types

type DynamoStore

type DynamoStore struct {
	Client            *dynamodb.Client
	TableName         string
	CategoryIndexName string
	TitleIndexName    string
}

func (*DynamoStore) DeleteMany

func (s *DynamoStore) DeleteMany(books []*models.Book, requestToken string) error

func (*DynamoStore) GetAll

func (s *DynamoStore) GetAll() ([]*models.Book, error)

func (*DynamoStore) PutMany

func (s *DynamoStore) PutMany(books []*models.Book) error

func (*DynamoStore) Search

func (s *DynamoStore) Search(queryParams map[string]string) ([]*models.Book, error)

func (*DynamoStore) Update

func (s *DynamoStore) Update(book *models.Book, partial bool) (*models.Book, error)

Jump to

Keyboard shortcuts

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