Documentation ¶
Index ¶
- type DB
- func (d *DB) Authenticate(login *models.LoginModel) (*models.Session, error)
- func (d *DB) AutoMigrate(model ...interface{}) error
- func (d *DB) CheckSession(sessionIDValue string) (*models.Session, error)
- func (d *DB) Connect()
- func (d *DB) Deauthenticate(sessionID string) error
- func (d *DB) DeleteImage(imgPath string) error
- func (d *DB) GeneratePasswordResetRequest(userName string) string
- func (d *DB) GetGroupsForUser(userID string) ([]models.Group, error)
- func (d *DB) GetSelectableUsersToShareList(session *models.Session, wishlistID string) ([]models.SearchUser, error)
- func (d *DB) GetSharedWishlists(session *models.Session) ([]models.Wishlist, error)
- func (d *DB) GetUsersForWishlist(wishlistID string) ([]models.SearchUser, error)
- func (d *DB) GroupCreate(group *models.Group) (string, error)
- func (d *DB) GroupDelete(id string) (string, error)
- func (d *DB) GroupUpdate(group *models.Group) error
- func (d *DB) ListObjects(objectType string) string
- func (d *DB) PasswordResetCLI(userName string, password string) string
- func (d *DB) Register(user *models.User) error
- func (d *DB) ReserveWishlistItem(session *models.Session, wlItem *models.WishlistItem) error
- func (d *DB) RetrieveProfile(session *models.Session) (*models.ProfileUser, error)
- func (d *DB) SetUsersForWishlist(wishlistID string, users []models.User) error
- func (d *DB) UnreserveWishlistItem(session *models.Session, wlItem *models.WishlistItem) error
- func (d *DB) UploadImage(formFile multipart.File, fileHeader *multipart.FileHeader, table string) (string, error)
- func (d *DB) ValidateAndResetUser(resetToken string, password string) error
- func (d *DB) WishlistBrowse(session *models.Session) ([]models.Wishlist, error)
- func (d *DB) WishlistDelete(id string) (string, error)
- func (d *DB) WishlistRetrieveAll(session *models.Session) ([]models.Wishlist, error)
- func (d *DB) WishlistRetrieveOne(session *models.Session, id string) (*models.Wishlist, error)
- func (d *DB) WishlistUpsert(wishlist *models.Wishlist) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) Authenticate ¶
func (*DB) AutoMigrate ¶
func (*DB) Deauthenticate ¶
func (*DB) DeleteImage ¶
func (*DB) GeneratePasswordResetRequest ¶
GeneratePasswordResetRequest CLI ONLY FUNCTION!
func (*DB) GetSelectableUsersToShareList ¶
func (d *DB) GetSelectableUsersToShareList(session *models.Session, wishlistID string) ([]models.SearchUser, error)
Returns all users as SearchUser slice, minus those that are already shared and the current session user
func (*DB) GetSharedWishlists ¶
func (*DB) GetUsersForWishlist ¶
func (d *DB) GetUsersForWishlist(wishlistID string) ([]models.SearchUser, error)
func (*DB) ListObjects ¶
ListObjects CLI ONLY FUNCTION!
func (*DB) PasswordResetCLI ¶
PasswordResetCLI CLI ONLY FUNCTION!
func (*DB) ReserveWishlistItem ¶
func (*DB) RetrieveProfile ¶
func (*DB) SetUsersForWishlist ¶
func (*DB) UnreserveWishlistItem ¶
func (*DB) UploadImage ¶
func (d *DB) UploadImage(formFile multipart.File, fileHeader *multipart.FileHeader, table string) (string, error)
UploadImage provide a formfile (from upload), its fileheadder, and the name of the table/folder to store the file. returns the file path of the stored file and any error
func (*DB) ValidateAndResetUser ¶
func (*DB) WishlistBrowse ¶
func (*DB) WishlistRetrieveAll ¶
func (*DB) WishlistRetrieveOne ¶
Click to show internal directories.
Click to hide internal directories.