config

package
v0.0.0-...-61ffae0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(config *BootstrapConfig)

func NewErrorHandler

func NewErrorHandler() fiber.ErrorHandler

func NewFiber

func NewFiber(config *viper.Viper) *fiber.App

func NewLogger

func NewLogger(viper *viper.Viper) *logrus.Logger

func NewPostgresConnection

func NewPostgresConnection(viper *viper.Viper, log *logrus.Logger) *sql.DB

func NewPostgresGormConnection

func NewPostgresGormConnection(viper *viper.Viper, logger *logrus.Logger) (*sql.DB, *gorm.DB)

func NewViper

func NewViper() *viper.Viper

Types

type BootstrapConfig

type BootstrapConfig struct {
	DB       *gorm.DB
	App      *fiber.App
	Log      *logrus.Logger
	Validate util.Validator
	Config   *viper.Viper
}

Jump to

Keyboard shortcuts

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