forked from mtusi2026/mtusi2026lab6
feat: add bounded observability and verified SLO incident alerts
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package controller
|
||||
|
||||
import "go.uber.org/fx"
|
||||
|
||||
// RunControllerFx lets Fx own startup, signal handling and graceful shutdown.
|
||||
func RunControllerFx(lc fx.Lifecycle, ctrl Controller) {
|
||||
lc.Append(fx.Hook{OnStart: ctrl.Start, OnStop: ctrl.Stop})
|
||||
}
|
||||
Reference in New Issue
Block a user