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.

26 lines
533 B

3 years ago
  1. package nova.monadic_sfx.util.reactive.store
  2. import java.time.LocalDateTime
  3. import io.circe.Encoder
  4. import io.circe.Printer
  5. import io.circe.generic.JsonCodec
  6. import io.circe.syntax._
  7. import monix.bio.Task
  8. import monix.reactive.Observable
  9. // object Middleware {
  10. // def apply[A,M,T](ob: Observable[(A,M)], cb: (A,M) => T): Observable[(A,M)] = ob
  11. // }
  12. @JsonCodec
  13. final case class StoreInfo[A](
  14. name: String,
  15. action: A,
  16. time: LocalDateTime
  17. )
  18. object StoreInfo {
  19. val printer = Printer.noSpaces
  20. }
  21. object Middlewares {}