Documentation
¶
Index ¶
- func Bootstrap(config *BootstrapConfig) error
- func GracefulShutdown(e *echo.Echo, log *logrus.Logger, shutdownTimeout time.Duration)
- func NewDatabase(viper *viper.Viper, log *logrus.Logger) *gorm.DB
- func NewEcho() (*echo.Echo, *logrus.Logger)
- func NewGomail(viper *viper.Viper, log *logrus.Logger) *g.ImplGomail
- func NewJWT(viper *viper.Viper) *jwt.JWTConfig
- func NewLogrus(viper *viper.Viper) *logrus.Logger
- func NewRedisClient(viper *viper.Viper, log *logrus.Logger) *cache.ImplCache
- func NewValidator() *validator.Validate
- func NewViper() *viper.Viper
- func NewXendit(viper *viper.Viper) *xendit.APIClient
- type BootstrapConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
func Bootstrap(config *BootstrapConfig) error
func GracefulShutdown ¶
GracefulShutdown handles the graceful shutdown of the Echo server
func NewDatabase ¶
NewDatabase creates a new database connection
func NewRedisClient ¶
NewRedisClient creates a new redis client
func NewValidator ¶
func NewValidator() *validator.Validate
Types ¶
Click to show internal directories.
Click to hide internal directories.