Versions in this module Expand all Collapse all v1 v1.0.1 Nov 30, 2020 Changes in this version + const BOOKINGS + const EVENTS + const LOCATIONS + const USERS + func NewDynamoDBLayerBySession(sess *session.Session) persistence.DatabaseHandler + func NewDynamoDbLayerByRegion(region string) (persistence.DatabaseHandler, error) + type DynamoDBLayer struct + func (dynamoLayer *DynamoDBLayer) AddBookingForUser(id []byte, bk persistence.Booking) error + func (dynamoLayer *DynamoDBLayer) AddEvent(event persistence.Event) ([]byte, error) + func (dynamoLayer *DynamoDBLayer) AddLocation(l persistence.Location) (persistence.Location, error) + func (dynamoLayer *DynamoDBLayer) AddUser(u persistence.User) ([]byte, error) + func (dynamoLayer *DynamoDBLayer) FindAllAvailableEvents() ([]persistence.Event, error) + func (dynamoLayer *DynamoDBLayer) FindAllLocations() ([]persistence.Location, error) + func (dynamoLayer *DynamoDBLayer) FindBookingsForUser(id []byte) ([]persistence.Booking, error) + func (dynamoLayer *DynamoDBLayer) FindEvent(id []byte) (persistence.Event, error) + func (dynamoLayer *DynamoDBLayer) FindEventByName(name string) (persistence.Event, error) + func (dynamoLayer *DynamoDBLayer) FindLocation(s string) (persistence.Location, error) + func (dynamoLayer *DynamoDBLayer) FindUser(f string, l string) (persistence.User, error)