Documentation ¶
Index ¶
- Constants
- func NewDynamoDBLayerBySession(sess *session.Session) persistence.DatabaseHandler
- func NewDynamoDbLayerByRegion(region string) (persistence.DatabaseHandler, error)
- type DynamoDBLayer
- 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)
Constants ¶
View Source
const ( BOOKINGS = "bookings" EVENTS = "events" LOCATIONS = "locations" USERS = "users" )
Variables ¶
This section is empty.
Functions ¶
func NewDynamoDBLayerBySession ¶
func NewDynamoDBLayerBySession(sess *session.Session) persistence.DatabaseHandler
func NewDynamoDbLayerByRegion ¶
func NewDynamoDbLayerByRegion(region string) (persistence.DatabaseHandler, error)
Types ¶
type DynamoDBLayer ¶
type DynamoDBLayer struct {
// contains filtered or unexported fields
}
func (*DynamoDBLayer) AddBookingForUser ¶
func (dynamoLayer *DynamoDBLayer) AddBookingForUser(id []byte, bk persistence.Booking) error
func (*DynamoDBLayer) AddEvent ¶
func (dynamoLayer *DynamoDBLayer) AddEvent(event persistence.Event) ([]byte, error)
func (*DynamoDBLayer) AddLocation ¶
func (dynamoLayer *DynamoDBLayer) AddLocation(l persistence.Location) (persistence.Location, error)
func (*DynamoDBLayer) AddUser ¶
func (dynamoLayer *DynamoDBLayer) AddUser(u persistence.User) ([]byte, error)
func (*DynamoDBLayer) FindAllAvailableEvents ¶
func (dynamoLayer *DynamoDBLayer) FindAllAvailableEvents() ([]persistence.Event, error)
func (*DynamoDBLayer) FindAllLocations ¶
func (dynamoLayer *DynamoDBLayer) FindAllLocations() ([]persistence.Location, error)
func (*DynamoDBLayer) FindBookingsForUser ¶
func (dynamoLayer *DynamoDBLayer) FindBookingsForUser(id []byte) ([]persistence.Booking, error)
func (*DynamoDBLayer) FindEvent ¶
func (dynamoLayer *DynamoDBLayer) FindEvent(id []byte) (persistence.Event, error)
func (*DynamoDBLayer) FindEventByName ¶
func (dynamoLayer *DynamoDBLayer) FindEventByName(name string) (persistence.Event, error)
func (*DynamoDBLayer) FindLocation ¶
func (dynamoLayer *DynamoDBLayer) FindLocation(s string) (persistence.Location, error)
TODO finish dynamoDB database handler Implementation
func (*DynamoDBLayer) FindUser ¶
func (dynamoLayer *DynamoDBLayer) FindUser(f string, l string) (persistence.User, error)
Click to show internal directories.
Click to hide internal directories.