Documentation ¶
Index ¶
- type DAL
- func (dal *DAL) Close()
- func (dal *DAL) FindActiveUserByEmail(email string) (*models.User, error)
- func (dal *DAL) FindAnyUserByEmail(email string) (*models.User, error)
- func (dal *DAL) FindUserByConfirmationToken(confirmationToken string, email string) (*models.User, error)
- func (dal *DAL) FindUserByRecoveryToken(recoveryToken string, email string) (*models.User, error)
- func (dal *DAL) GetEventByDisplayId(displayId string) (*models.Event, error)
- func (dal *DAL) GetEventsForUser(displayId string) *[]models.Event
- func (dal *DAL) Initialize() error
- func (dal *DAL) InsertEvent(name string, adminUser string, slots []models.Slot, meetings []models.Meeting) error
- func (dal *DAL) InsertUser(email string, hash []byte, firstName string, lastName string, ...) error
- func (dal *DAL) RemoveEvent(displayId string) error
- func (dal *DAL) RemoveSlotFromEvent(eventDisplayId string, displayId string) error
- func (dal *DAL) UpdateEvent(displayId string, name string, adminUser string, slots []models.Slot, ...) error
- func (dal *DAL) UpdateUserConfirmation(userId bson.ObjectId, userStatus models.UserStatusType, ...) error
- func (dal *DAL) UpdateUserPassword(userId bson.ObjectId, hash []byte, ...) error
- func (dal *DAL) UpdateUserRecovery(userId bson.ObjectId, recoveryToken string, ...) error
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 (*DAL) FindActiveUserByEmail ¶
func (*DAL) FindAnyUserByEmail ¶
func (*DAL) FindUserByConfirmationToken ¶
func (*DAL) FindUserByRecoveryToken ¶
func (*DAL) GetEventByDisplayId ¶
func (*DAL) Initialize ¶
func (*DAL) InsertEvent ¶
func (*DAL) InsertUser ¶
func (*DAL) RemoveEvent ¶
func (*DAL) RemoveSlotFromEvent ¶
func (*DAL) UpdateEvent ¶
func (*DAL) UpdateUserConfirmation ¶
func (dal *DAL) UpdateUserConfirmation(userId bson.ObjectId, userStatus models.UserStatusType, confirmationTokenStatus models.ConfirmationTokenStatusType, confirmed bool) error
func (*DAL) UpdateUserPassword ¶
Click to show internal directories.
Click to hide internal directories.