Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "handler", fx.Provide( handler.NewHttpServer, ), fx.Invoke( func(lc fx.Lifecycle, s handler.HttpServer) { lc.Append(fx.Hook{ OnStart: func(ctx context.Context) error { go s.Start(ctx) return nil }, OnStop: func(ctx context.Context) error { fmt.Println("Stopping server") return nil }, }) }, ), )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.