// Code generated by Wire. DO NOT EDIT. //go:generate go run -mod=mod github.com/google/wire/cmd/wire //go:build !wireinject // +build !wireinject package app import ( "context" ) // Injectors from wire.go: // InitializeApp builds the fully assembled App and an aggregated cleanup function // from the command-line config locators. The body is a Wire injector declaration; // the real implementation is generated into wire_gen.go by `go generate`. func InitializeApp(ctx context.Context, cli CLIArgs) (*App, func(), error) { modelRTConfig, cleanup, err := provideConfig(cli) if err != nil { return nil, nil, err } serviceToken, err := provideServiceToken(modelRTConfig) if err != nil { cleanup() return nil, nil, err } engine := provideEngine(modelRTConfig, serviceToken) server := provideServer(modelRTConfig, engine) db, cleanup2, err := providePostgres(ctx, modelRTConfig) if err != nil { cleanup() return nil, nil, err } tracerProvider, cleanup3 := provideTracerProvider(ctx, modelRTConfig) parsePool, cleanup4, err := provideParsePool(modelRTConfig) if err != nil { cleanup3() cleanup2() cleanup() return nil, nil, err } pool, cleanup5, err := provideSearchPool(modelRTConfig) if err != nil { cleanup4() cleanup3() cleanup2() cleanup() return nil, nil, err } storageRedis, cleanup6 := provideStorageRedis(modelRTConfig) lockerRedis, cleanup7 := provideLockerRedis(modelRTConfig) anchorPool, cleanup8, err := provideAnchorPool(modelRTConfig) if err != nil { cleanup7() cleanup6() cleanup5() cleanup4() cleanup3() cleanup2() cleanup() return nil, nil, err } rabbitMQProxy, cleanup9 := provideRabbit(ctx, modelRTConfig) taskWorker, cleanup10 := provideTaskWorker(ctx, modelRTConfig, db) eventManager := provideAlertManager() app := provideApp(modelRTConfig, server, db, tracerProvider, parsePool, pool, storageRedis, lockerRedis, anchorPool, rabbitMQProxy, taskWorker, eventManager) return app, func() { cleanup10() cleanup9() cleanup8() cleanup7() cleanup6() cleanup5() cleanup4() cleanup3() cleanup2() cleanup() }, nil }