app

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application declare application's information

func New

func New(name string, logger *zap.Logger, options ...Option) (*Application, error)

New serve caller to new Application

func (*Application) AwaitSignal

func (a *Application) AwaitSignal()

AwaitSignal serve caller to await server running

func (*Application) Start

func (a *Application) Start() error

Start serve caller to start an application

type Option

type Option func(app *Application) error

Option declare application options

func HTTPServerOption

func HTTPServerOption(svr *http.Server) Option

HTTPServerOption declare http server option

Jump to

Keyboard shortcuts

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