doopfx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"doop",
	fx.Provide(
		NewServer,
	),
)

Functions

func CatchSignal

func CatchSignal(app *fx.App)

func CreateAndServeApp

func CreateAndServeApp(opts ...fx.Option)

func CreateAndStartApp

func CreateAndStartApp(opts ...fx.Option) *fx.App

func StopApp

func StopApp(app *fx.App)

Types

type ServerResult

type ServerResult struct {
	fx.Out
	Env    *viper.Viper
	Logger *zap.Logger
	Server *server.Server
}

func NewServer

func NewServer(lc fx.Lifecycle) (ServerResult, error)

Jump to

Keyboard shortcuts

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