webserver

package
v0.0.0-...-7fa7ca5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSkel

type AppSkel struct {
	Fiber     *fiber.App
	DB        *database.Database
	Config    *config.Config
	Logger    zerolog.Logger
	Validator *validator.Validate
}

func New

func New(configPart *config.Config) *AppSkel

func (*AppSkel) Run

func (app *AppSkel) Run() error

func (*AppSkel) SetupDB

func (app *AppSkel) SetupDB() error

func (*AppSkel) SetupLogger

func (app *AppSkel) SetupLogger() error

func (*AppSkel) Shutdown

func (app *AppSkel) Shutdown()

Shutdown the webserver

type PreforkHook

type PreforkHook struct{}

func (PreforkHook) Run

func (h PreforkHook) Run(e *zerolog.Event, level zerolog.Level, msg string)

Jump to

Keyboard shortcuts

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