Documentation ¶
Index ¶
- func AddEmailDB(userid int, emailAddress string) string
- func AddTripDB(trip wings.TripBasic, userID int) int
- func AddTripToUserDB(tripID int, user wings.UserBasic) bool
- 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(trip wings.TripBasic) bool
- func DeleteTripFromUserDB(trip wings.TripBasic, user wings.UserBasic) bool
- func DeleteTripWithOwnerIDDB(id int) bool
- func DeleteUserDBWithID(id int) bool
- func ForceConfirm(uid int) bool
- func GetCitiesDB(searchTerm string) wings.ParsedCitys
- func GetCityDB(id int) wings.ParsedCity
- func GetEmailConfirmCodeDB(emailAddress string, userid int) string
- func GetEmailDB(code string) (int, int, string, bool)
- func GetEmailWithIDDB(userid int) string
- func GetEmailWithUserIDUserDB(userID int) string
- func GetTimeInfoDBWithID(id int) (bool, time.Time)
- func GetTripOwnerWithID(id int) int
- func GetUserIDDBWithEmail(email string) int
- func GetUserIDWithUsername(username string) int
- func GetUserPasswordHashDB(user wings.NewUser) string
- func GetUserPwHashDB(email string) string
- func GetUserTripsWithID(id int) []int
- func GetUsernameWithID(id int) string
- func NewUserDB(user wings.NewUser) (int, wings.RegistrationError)
- func NotExists(haystack []int, needles []int) []int
- func UpdatePassword(id int, email string, newPasswordHash string) bool
- func UpdateTripDB(trip wings.TripBasic, userID int) bool
- func UpdateUserBasicDB(updatedUser wings.UserBasic) bool
- type CityConfig
- type TripExtra
- type UserExtra
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 DeleteTripFromUserDB ¶
func DeleteTripWithOwnerIDDB ¶
func DeleteUserDBWithID ¶
func ForceConfirm ¶
func GetCitiesDB ¶
func GetCitiesDB(searchTerm string) wings.ParsedCitys
func GetCityDB ¶
func GetCityDB(id int) wings.ParsedCity
func GetEmailConfirmCodeDB ¶
func GetEmailWithIDDB ¶
func GetTripOwnerWithID ¶
TODO: Update to trip permission instead when we begin to allow trip sharing
func GetUserIDDBWithEmail ¶
func GetUserIDWithUsername ¶
func GetUserPasswordHashDB ¶
GetUserPasswordHashDB - Retreives and return the password hash of the user account.
func GetUserPwHashDB ¶
func GetUserTripsWithID ¶
func GetUsernameWithID ¶
func NewUserDB ¶
func NewUserDB(user wings.NewUser) (int, wings.RegistrationError)
NewUserDB - Adding new user to the database.
func UpdateTripDB ¶
UpdateTripDB - Update trip information back into the database.
func UpdateUserBasicDB ¶
Types ¶
type CityConfig ¶
type CityConfig struct {
// contains filtered or unexported fields
}
type TripExtra ¶
func GetRecentTripsDB ¶
GetRecentTripsDB - Get most recent public trips from database
Click to show internal directories.
Click to hide internal directories.