fxdefaultapp

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(

		fxlog.NewLogger,
		fxerrors.NewHandler,

		fxdebug.NewServer,
		fxdebug.NewHealthCollector,
		fxdebug.NewStatusChecker,
	),
)

Module is an fx compatible module.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	fx.In

	Logger log.Logger
	Status *healthz.StatusChecker

	DebugErr fxdebug.Err
}

Runner executes the application and waits for it to end.

func (*Runner) Run

func (r *Runner) Run(app interface {
	Done() <-chan os.Signal
}) error

Run waits for the application to finish or exit because of some error.

Jump to

Keyboard shortcuts

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