-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
-
remove Future's using monix [https://monix.io].
- remove ExecutionContext as well.
-
using airframe more deeply insight [https://wvlet.org/airframe/docs/index.html]
- The following lines might not be good.
Lines 27 to 38 in eb6d4d7
session.start val service = session.build[HttpService] // initialize db. // val dbConfig = inject[DBConf] // dbConfig.initialize() // refreshable after initialized db. // CacheModules.refresh() Http().bindAndHandle(service.routes, "127.0.0.1", 8080) } finally { session.shutdown ca-scala/modules/adaptor/app/adaptor/http/HttpModules.scala
Lines 13 to 30 in eb6d4d7
class HttpModules(implicit ec: ExecutionContext) { val design: Design = newDesign .bind[HealthCheckPresenter] .toEagerSingleton .bind[DebugEchoPresenter] .toEagerSingleton .bind[EchoController] .toInstanceProvider { (a: HealthCheckPresenter, b: HealthCheckEchoUseCase, c: DebugEchoUseCase, d: DebugEchoPresenter) => EchoController(a, b, c, d) } .bind[HttpService] .toInstanceProvider { a: EchoController => HttpService(a) ca-scala/modules/usecase/app/usecase/campaign/LoadCampaignUseCaseImpl.scala
Lines 15 to 17 in eb6d4d7
case class LoadCampaignUseCaseImpl() extends LoadCampaignUseCase with LogSupport { val aRepository: CampaignRepository = bind[CampaignRepository @@ String] val bRepository: CampaignRepository = bind[CampaignRepository @@ String]
-
implementing 2-phase commit using scalikejdbc
- multi database with connection-pool
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels