handler

package
v0.0.0-...-b34430a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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