utils

package
v0.0.0-...-3dfa1a1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMetadata

func GenerateMetadata() domain.Metadata

func LoadConfig

func LoadConfig(path string) *domain.Env

func NewAesEncrypt

func NewAesEncrypt(_key string) domain.AesEncryptUtil

func NewAuthUtil

func NewAuthUtil(env *domain.Env, firebaseAuth *auth.Client) domain.AuthUtil

func NewCartUtil

func NewCartUtil(productUtil domain.ProductUtil) domain.CartUtil

func NewHashUtil

func NewHashUtil() domain.HashUtil

func NewJWTUtil

func NewJWTUtil(accessTokenSecretKey, refreshTokenSecretKey []byte, accessTokenExpiryHour, refreshTokenExpiryHour int) domain.JWTUtil

func NewLoggerUtil

func NewLoggerUtil(env *domain.Env) domain.LoggerUtil

func NewProductUtil

func NewProductUtil() domain.ProductUtil

func SetupTestDB

func SetupTestDB(env *domain.Env) (*dockertest.Pool, *dockertest.Resource, *sqlx.DB)

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