Documentation ¶ Index ¶ func NewFiber(cfg *config.Config) *fiber.App func NewLogger(cfg *config.Config) zerolog.Logger func Start(lifecycle fx.Lifecycle, cfg *config.Config, fiber *fiber.App, ...) type PreforkHook func (h PreforkHook) Run(e *zerolog.Event, level zerolog.Level, msg string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewFiber ¶ func NewFiber(cfg *config.Config) *fiber.App initialize the webserver func NewLogger ¶ func NewLogger(cfg *config.Config) zerolog.Logger initialize logger func Start ¶ func Start(lifecycle fx.Lifecycle, cfg *config.Config, fiber *fiber.App, router *router.Router, middlewares *middleware.Middleware, database *database.Database, log zerolog.Logger) function to start webserver Types ¶ type PreforkHook ¶ type PreforkHook struct{} prefer hook for zerologger func (PreforkHook) Run ¶ func (h PreforkHook) Run(e *zerolog.Event, level zerolog.Level, msg string) Source Files ¶ View all Source files logger.go webserver.go Directories ¶ Show internal Expand all Path Synopsis database Click to show internal directories. Click to hide internal directories.