Documentation
¶
Index ¶
- Variables
- func FormatValidationErrors(err error) string
- func GenerateOTP(ctx context.Context, email string) error
- func GenerateRandomString(length int) string
- func GenerateToken(userId *uuid.UUID, isRefresh bool) (string, error)
- func InitCache()
- func InitDB()
- func InitMailer()
- func InitValidator()
- func Ping(pool *pgxpool.Pool)
- func SendEmail(to, subject, body string, attachments ...string) error
- func SendTeamEmail(ctx context.Context, emails []string) error
- func ValidateAlphaNum(str string) bool
- func WriteError(c echo.Context, status int, err error) error
- func WriteJSON(c echo.Context, status int, message interface{}) error
- type JWTClaims
- type StandardResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var Config cfg
View Source
var Queries *db.Queries
View Source
var RedisClient *redis.Client
View Source
var Validate *validator.Validate
Functions ¶
func FormatValidationErrors ¶
func GenerateRandomString ¶
func InitMailer ¶
func InitMailer()
func InitValidator ¶
func InitValidator()
func ValidateAlphaNum ¶
func WriteError ¶
Types ¶
type JWTClaims ¶
func ValidateRefreshToken ¶
type StandardResponse ¶
Click to show internal directories.
Click to hide internal directories.