Documentation
¶
Index ¶
- Variables
- func CheckPassword(providedPassword string, user *models.User) error
- func CreatePasteAccessRecord(pasteAccess *models.PasteAccess) error
- func CreatePasteRecord(paste *models.Paste) error
- func CreateUserRecord(user *models.User) error
- func DeletePasteAccessRecord(pasteAccess *models.PasteAccess) error
- func DeletePasteRecord(paste *models.Paste) error
- func GetPasteAccessRecordByUserIdAndPasteId(userId uuid.UUID, pasteId string) (*models.PasteAccess, error)
- func GetPasteAccessRecordsByPasteId(pasteId string) ([]models.PasteAccess, error)
- func GetPasteAccessRecordsByUserId(userId uuid.UUID) ([]models.PasteAccess, error)
- func GetPasteByID(id string) (*models.Paste, error)
- func GetUserByEmail(email string) (*models.User, error)
- func HashPassword(password string) (string, error)
- func UpdatePasteRecord(pasteId string, paste *models.Paste) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func CreatePasteAccessRecord ¶
func CreatePasteAccessRecord(pasteAccess *models.PasteAccess) error
func CreatePasteRecord ¶
func CreateUserRecord ¶
func DeletePasteAccessRecord ¶
func DeletePasteAccessRecord(pasteAccess *models.PasteAccess) error
func DeletePasteRecord ¶
func GetPasteAccessRecordsByPasteId ¶
func GetPasteAccessRecordsByPasteId(pasteId string) ( []models.PasteAccess, error, )
func GetPasteAccessRecordsByUserId ¶
func GetPasteAccessRecordsByUserId(userId uuid.UUID) ( []models.PasteAccess, error, )
func HashPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.