Documentation ¶
Index ¶
- func AddEmailDB(userid int, emailAddress string) string
- func AddTripDB(newTrip structs.IStructs) int
- func ConfirmEmailDB(id int, userid int, emailAddress string, code string) bool
- func DeleteEmailDB(userid int, emailAddress string) bool
- func DeleteEmailsDB(userid int) bool
- func DeleteTripDB(existingTrip structs.IStructs) bool
- func DeleteUserDB(existingUser structs.IStructs) bool
- func DummyTrip() wings.Trip
- func DummyUser() wings.User
- func ForceConfirm(uid int) bool
- func GetEmailDB(code string) (int, int, string, bool)
- func GetEmailWithIDDB(userid int) string
- func GetRecentTrips() []wings.Trip
- func GetTripDB(id int, userid int) structs.IStructs
- func GetUserDB(id int, viewer int) structs.IStructs
- func GetUserPasswordHashDB(user wings.NewUser) string
- func GetUserWithEmailDB(user wings.NewUser) wings.User
- func NewUserDB(newUser structs.IStructs) int
- func NotExists(haystack []int, needles []int) []int
- func UpdateTripDB(updatedTrip structs.IStructs) bool
- func UpdateUserDB(updatedUser structs.IStructs) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEmailDB ¶
AddEmailDB - Do not call this directly. Use `NewEmail` from `email` instead.
func ConfirmEmailDB ¶
ConfirmEmailDB - Do not call this directly. Use `ConfirmEmail` from `email` instead.
func DeleteEmailDB ¶
func DeleteEmailsDB ¶
func DeleteTripDB ¶
DeleteTripDB - Delete trip from the database.
func DeleteUserDB ¶
DeleteUserDB - Delete user from the database.
func ForceConfirm ¶
PROD: Remove on prod. Only used for automated testing.
func GetEmailWithIDDB ¶
func GetRecentTrips ¶
func GetUserPasswordHashDB ¶
GetUserPasswordHashDB - Retreives and return the password hash of the user account.
func GetUserWithEmailDB ¶
GetUserWithEmailDB - Retrieve user information from database with their email.
func UpdateTripDB ¶
UpdateTripDB - Update trip information back into the database.
func UpdateUserDB ¶
UpdateUserDB - Update user information back into the database.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.