All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.taig.phoenix.Channel.scala Maven / Gradle / Ivy

The newest version!
package io.taig.phoenix

import io.circe.Json
import io.taig.phoenix.models.{ Event, Inbound, Response, Topic }

import scala.language.higherKinds

trait Channel[A[_], B[_]] {
    def topic: Topic

    def stream: A[Inbound]

    def send( event: Event, payload: Json ): B[Option[Response]]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy