util

package
v0.0.0-...-30833c4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(password, hashedPassword string) error

ComparePassword compares input password with hashed password

func Deserialize

func Deserialize(data []byte, output any) error

Deserialize unmarshals the input data into the output interface

func GenerateCacheKey

func GenerateCacheKey(prefix string, params any) string

GenerateCacheKey generates a cache key based on the input parameters

func GenerateCacheKeyParams

func GenerateCacheKeyParams(params ...any) string

GenerateCacheParams generates a cache params based on the input parameters

func HashPassword

func HashPassword(password string) (string, error)

HashPassword hashes input password using bcrypt

func Serialize

func Serialize(data any) ([]byte, error)

Serialize marshals the input data into an array of bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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