15 lines
392 B
Go
15 lines
392 B
Go
package interfaces
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"time"
|
|
)
|
|
|
|
type Utils interface {
|
|
IsEmail(email string) bool
|
|
GetUserUuidFromContext(c *gin.Context) (string, error)
|
|
GetRefreshUuidFromContext(c *gin.Context) (string, error)
|
|
HashPassword(password string) (string, error)
|
|
ComparePasswords(hashedPassword string, plainPassword string) error
|
|
ParseTime(t string) (time.Time, error)
|
|
}
|