application

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPingHandler

func NewPingHandler(app *App)

Types

type App

type App struct {
	Router *chi.Mux
	// contains filtered or unexported fields
}

func New

func New(config *Config) *App

New create a new web application

func (*App) Initialize

func (app *App) Initialize()

Initialize initialize a app Logger rs/zerolog GET ping handler

func (*App) ListenAndServe added in v0.0.7

func (app *App) ListenAndServe() error

ListenAndServe listen and serve web application

type Config

type Config struct {
	Port     string
	WithPing bool
}

Jump to

Keyboard shortcuts

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