app

package
v0.0.0-...-9a25d2e Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const ScoketTimeout = 30 * time.Second

ScoketTimeout set timeout for HTTP server

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Logger  *zerolog.Logger
	Handler *http.ServeMux
	// contains filtered or unexported fields
}

App is used for keep central location of configuration and resources

func NewApp

func NewApp() (*App, error)

NewApp initialize App instance

func (*App) Serve

func (app *App) Serve()

Serve start listen on port for HTTP

func (*App) Shutdown

func (app *App) Shutdown()

Shutdown gracefully stop HTTP server

Jump to

Keyboard shortcuts

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