utils

package
v0.0.0-...-115b5aa Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiResponse

func ApiResponse(ctx *fiber.Ctx, statusCode int, apiConst config.ApiResponse) error

func ApiResponseWithCustomMsg

func ApiResponseWithCustomMsg(ctx *fiber.Ctx, statusCode int, resp interface{}) error

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

Utility to compare the password and hash ...

func GetType

func GetType(pref string) string

Get the cron job param based on preference type ...

func HashPassword

func HashPassword(password string) (string, error)

Utility to Hash the password ...

func InitKafkaConn

func InitKafkaConn() *kafka.Conn

Connect with Kafka ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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