Documentation
¶
Index ¶
- Constants
- func BadRequestResponse(ctx echo.Context, message string) error
- func CheckPasswordHash(password, hash string) bool
- func ErrorResponse(ctx echo.Context, err error) error
- func GenerateSecureToken(id uuid.UUID) (string, error)
- func GetDataFromSecureToken(token string) (*uuid.UUID, error)
- func HashData(data string) (string, error)
- func NotFoundResponse(ctx echo.Context, message string) error
- func ServerErrorResponse(ctx echo.Context) error
- func SuccessResponse(ctx echo.Context, data any) error
- func ValidationErrorResponse(ctx echo.Context, errors map[string]string) error
- type Response
- type ResponseWithPagination
- type TableName
Constants ¶
View Source
const LinkExpireInHours = 2
Variables ¶
This section is empty.
Functions ¶
func BadRequestResponse ¶
func CheckPasswordHash ¶
func ErrorResponse ¶
func NotFoundResponse ¶
func ServerErrorResponse ¶
func ServerErrorResponse(ctx echo.Context) error
func SuccessResponse ¶
func ValidationErrorResponse ¶
Types ¶
type ResponseWithPagination ¶
Click to show internal directories.
Click to hide internal directories.