Documentation ¶
Index ¶
- Variables
- func CheckPassword(hashedPassword string, password string) error
- func CloseLogger(logger *logrus.Logger)
- func ConnectDB(config DBConfig) (*gorm.DB, error)
- func HashedPassword(password string) (string, error)
- func InitLogger(logFileName string) *logrus.Logger
- func LoadEnv() map[string]string
- func Views(viewName string, data fiber.Map) fiber.Handler
- func ViewsWithLayout(viewName string, data fiber.Map, layoutName string) fiber.Handler
- type DBConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func CheckPassword ¶ added in v1.1.2
CheckPassword memeriksa apakah password sesuai dengan hashed password Mengembalikan nil jika cocok, atau error jika tidak cocok
func CloseLogger ¶ added in v1.1.0
Fungsi untuk menutup file log
func HashedPassword ¶ added in v1.1.2
HashedPassword menghasilkan hash dari password yang diberikan
func InitLogger ¶ added in v1.1.0
Fungsi untuk menginisialisasi logger
func ViewsWithLayout ¶ added in v1.1.3
Types ¶
Click to show internal directories.
Click to hide internal directories.