infrastructure

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

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(db *gorm.DB, dbName string) error

func DeleteDatabase

func DeleteDatabase(db *gorm.DB, dbName string) error

func NewConnection

func NewConnection(user, password, host string, port int) (*gorm.DB, error)

func NewDatabase

func NewDatabase(log *zap.Logger) *gorm.DB

func NewErrorHandler

func NewErrorHandler() fiber.ErrorHandler

func NewFiber

func NewFiber(cfg *FiberConfig) *fiber.App

func NewLogger

func NewLogger() *zap.Logger

func NewValidator

func NewValidator() *validator.Validate

func NewViper

func NewViper(configFile string) *viper.Viper

Types

type FiberConfig

type FiberConfig struct {
	HealthCheck bool
	Logger      bool
}

Jump to

Keyboard shortcuts

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