Documentation ¶
Index ¶
- Constants
- func BadRequest(c *gin.Context, message string)
- func CreateChallenge(c *gin.Context, db *gorm.DB, data map[string]interface{}, ...) (bool, models.Challenge)
- func CreateInDatabase(c *gin.Context, db *gorm.DB, value interface{}, args ...models.Args) bool
- func DeleteInDatabaseById(db *gorm.DB, idField string, id interface{}, value interface{}) bool
- func DeleteUser(db *gorm.DB, verification models.Verification) bool
- func GetById(db *gorm.DB, value interface{}, id interface{}) bool
- func InternalServerError(c *gin.Context)
- func LogReqToDb(c *gin.Context, db *gorm.DB, reqId uuid.UUID, reqStart time.Time)
- func MarkVerified(c *gin.Context, db *gorm.DB, value interface{}, idField string, id string, ...) bool
- func ParseBody(c *gin.Context, strict bool, keys []string) map[string]interface{}
- func ParseBodyNonStrict(c *gin.Context, keys ...string) map[string]interface{}
- func ParseBodyStrict(c *gin.Context, keys ...string) map[string]interface{}
- func SendVerificationMail(db *gorm.DB, verification models.Verification) bool
- func StatusOK(c *gin.Context, data interface{}, message string)
- func StatusOKPag(c *gin.Context, data interface{}, pag pagination.Pagination, message string)
- func TxCommit(c *gin.Context, tx *gorm.DB) bool
- func UnauthorisedRequest(c *gin.Context)
- func UpdateField(db *gorm.DB, value interface{}, idField string, id interface{}, ...) bool
- func VerifyNewPasskey(db *gorm.DB, verification models.Verification) bool
- func VerifyNewUser(db *gorm.DB, verification models.Verification) bool
Constants ¶
View Source
const ( MessageBadRequest = "Bad Request" MessageBadRequestInsufficientData = "Bad Request insufficient data" MessageAlreadyVerified = "Already Verified." MessageVerificationAlreadyFailed = "Verification already Failed." MessageVerificationFailed = "Verification Failed." MessageUserVerificationSuccess = "User Verified." MessagePasskeyVerificationSuccess = "Passkey Authorised." MessageInvalidVerificationCode = "Verification Code Invalid." MessageExpiredVerificationCode = "Verification Code Expired." MessageErrorWhileSendingEmail = "Error while sending Email. please register again." MessageInvalidBody = "Invalid Body" MessageInvalidEmailAddress = "Invalid Email Address Please use valid Email." MessageInvalidPublicKey = "Invalid PublicKey Please use valid PublicKey." MessageError = "Message" )
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func CreateChallenge ¶
func CreateInDatabase ¶
func DeleteInDatabaseById ¶
func DeleteUser ¶
func DeleteUser(db *gorm.DB, verification models.Verification) bool
func InternalServerError ¶
func MarkVerified ¶
func ParseBodyNonStrict ¶
func SendVerificationMail ¶
func SendVerificationMail(db *gorm.DB, verification models.Verification) bool
func StatusOKPag ¶
func StatusOKPag(c *gin.Context, data interface{}, pag pagination.Pagination, message string)
func UnauthorisedRequest ¶
func UpdateField ¶
func VerifyNewPasskey ¶
func VerifyNewPasskey(db *gorm.DB, verification models.Verification) bool
func VerifyNewUser ¶
func VerifyNewUser(db *gorm.DB, verification models.Verification) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.