db

package
v0.0.0-...-f20b4aa Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2017 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAL

type DAL struct {
	// contains filtered or unexported fields
}

func NewDatabaseAccessor

func NewDatabaseAccessor(url string) *DAL

func (*DAL) Close

func (dal *DAL) Close()

func (*DAL) FindActiveUserByEmail

func (dal *DAL) FindActiveUserByEmail(email string) (*models.User, error)

func (*DAL) FindAnyUserByEmail

func (dal *DAL) FindAnyUserByEmail(email string) (*models.User, error)

func (*DAL) FindUserByConfirmationToken

func (dal *DAL) FindUserByConfirmationToken(confirmationToken string, email string) (*models.User, error)

func (*DAL) FindUserByRecoveryToken

func (dal *DAL) FindUserByRecoveryToken(recoveryToken string, email string) (*models.User, error)

func (*DAL) GetEventByDisplayId

func (dal *DAL) GetEventByDisplayId(displayId string) (*models.Event, error)

func (*DAL) GetEventsForUser

func (dal *DAL) GetEventsForUser(displayId string) *[]models.Event

func (*DAL) Initialize

func (dal *DAL) Initialize() error

func (*DAL) InsertEvent

func (dal *DAL) InsertEvent(name string, adminUser string, slots []models.Slot, meetings []models.Meeting) error

func (*DAL) InsertUser

func (dal *DAL) InsertUser(email string, hash []byte, firstName string, lastName string, confirmationToken string) error

func (*DAL) RemoveEvent

func (dal *DAL) RemoveEvent(displayId string) error

func (*DAL) RemoveSlotFromEvent

func (dal *DAL) RemoveSlotFromEvent(eventDisplayId string, displayId string) error

func (*DAL) UpdateEvent

func (dal *DAL) UpdateEvent(displayId string, name string, adminUser string, slots []models.Slot, meetings []models.Meeting) error

func (*DAL) UpdateUserConfirmation

func (dal *DAL) UpdateUserConfirmation(userId bson.ObjectId, userStatus models.UserStatusType, confirmationTokenStatus models.ConfirmationTokenStatusType, confirmed bool) error

func (*DAL) UpdateUserPassword

func (dal *DAL) UpdateUserPassword(userId bson.ObjectId, hash []byte, recoveryTokenStatus models.RecoverTokenStatusType, recoveryTokenExpiry time.Time) error

func (*DAL) UpdateUserRecovery

func (dal *DAL) UpdateUserRecovery(userId bson.ObjectId, recoveryToken string, recoveryTokenStatus models.RecoverTokenStatusType, recoveryTokenExpiry time.Time) error

Jump to

Keyboard shortcuts

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