Documentation ¶
Index ¶
- Constants
- func NewDynamoDBLayerByRegion(region string) (persistence.DatabaseHandler, error)
- func NewDynamoDBLayerBySession(sess *session.Session) persistence.DatabaseHandler
- 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(user 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 ( USERS = "users" EVENTS = "events" )
Variables ¶
This section is empty.
Functions ¶
func NewDynamoDBLayerByRegion ¶
func NewDynamoDBLayerByRegion(region string) (persistence.DatabaseHandler, error)
func NewDynamoDBLayerBySession ¶
func NewDynamoDBLayerBySession(sess *session.Session) persistence.DatabaseHandler
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(user 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)
func (*DynamoDBLayer) FindUser ¶
func (dynamoLayer *DynamoDBLayer) FindUser(f string, l string) (persistence.User, error)
Click to show internal directories.
Click to hide internal directories.