Documentation ¶
Index ¶
- func Bootstrap(config *BootstrapConfig)
- func NewDatabase(viper *viper.Viper) *gorm.DB
- func NewDevelopmentLogger() (*zap.Logger, error)
- func NewErrorHandler(viper *viper.Viper) fiber.ErrorHandler
- func NewFiber(viper *viper.Viper, options *AppOptions) *fiber.App
- func NewProductionLogger() (*zap.Logger, error)
- func NewValidator(viper *viper.Viper) *validator.Validate
- func NewViper() *viper.Viper
- func NewZapLog(viper *viper.Viper) *zap.Logger
- type AppOptions
- type BootstrapConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
func Bootstrap(config *BootstrapConfig)
func NewDevelopmentLogger ¶
This configuration for Development env, the log will be written to the terminal!
func NewErrorHandler ¶
func NewFiber ¶
func NewFiber(viper *viper.Viper, options *AppOptions) *fiber.App
func NewProductionLogger ¶
This configuration for Production env, the log will be written to a File!
func NewValidator ¶
Types ¶
type AppOptions ¶
Click to show internal directories.
Click to hide internal directories.