dynamolayer

package
v0.0.0-...-c80787b Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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