utils

package
v0.0.0-...-cbeb5a3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinCost     int = 4
	MaxCost     int = 31
	DefaultCost int = 10
)

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) (string, error)

func LoadEnv

func LoadEnv()

func VerifyHash

func VerifyHash(password string, hashedPassword string) (bool, error)

Types

type Config

type Config struct {
	DbHost   string `mapstructure:"DB_HOST"`
	DbPort   string `mapstructure:"DB_PORT"`
	DbName   string `mapstructure:"DB_NAME"`
	DbDriver string `mapstructure:"DB_DRIVER"`
}

func (*Config) GetDbSource

func (c *Config) GetDbSource() string

Jump to

Keyboard shortcuts

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