bootstrap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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