util

package
v0.0.0-...-a91912b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHashPassword

func CheckHashPassword(password, hash string) bool

func GenerateHashPassword

func GenerateHashPassword(password string) (string, error)

func GenerateJWTTokenFromClaims

func GenerateJWTTokenFromClaims(claims *types.JwtCustomClaims) (string, error)

func GetHostApp

func GetHostApp() string

func GetJWTAuthConfig

func GetJWTAuthConfig() config.JWTAuthConfig

func GetMysqlDBConnection

func GetMysqlDBConnection() config.MysqlDBSQLConnection

func GetPortApp

func GetPortApp() string

func GetPostgresDBConnection

func GetPostgresDBConnection() config.PostgresDBSQLConnection

func GetRedisDBCacheConnection

func GetRedisDBCacheConnection() config.RedisDBCacheConnection

func GetRequestUser

func GetRequestUser(c echo.Context) *request.RequestUser

func MockConnectionDatabaseSQL

func MockConnectionDatabaseSQL(dialect constant.DialectDatabaseSQLType) (*gorm.DB, sqlmock.Sqlmock)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL