You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
742 B

  1. package nova.monadic_sfx.http
  2. import akka.actor.typed._
  3. import nova.monadic_sfx.AppTypes
  4. import nova.monadic_sfx.http.requests.DummyRequest
  5. trait HttpModule {
  6. def requesters(
  7. backend: AppTypes.HttpBackend,
  8. system: ActorSystem[SpawnProtocol.Command]
  9. ): Requesters = {
  10. import com.softwaremill.macwire._
  11. val dummyRequester = wire[DummyRequest]
  12. wire[Requesters]
  13. }
  14. }
  15. class Requesters(val dummyRequester: DummyRequest)
  16. // object Requesters {
  17. // def apply(
  18. // backend: AppTypes.HttpBackend,
  19. // system: akka.actor.typed.ActorSystem[SpawnProtocol.Command]
  20. // ): Requesters = {
  21. // import com.softwaremill.macwire._
  22. // val dummyRequester = wire[DummyRequest]
  23. // wire[Requesters]
  24. // }
  25. // }