BackendClientLive

dev.cheleb.ziotapir.BackendClientLive
case class BackendClientLive(backend: WebSocketStreamBackend[Task, ZioStreams], interpreter: SttpClientInterpreter, streamInterpreter: StreamSttpClientInterpreter, websocketInterpreter: WebSocketSttpClientInterpreter, config: BackendClientConfig) extends BackendClient

The live implementation of the BackendClient.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def securedStreamRequestZIO[UserToken <: WithToken, I, O](baseUri: Uri, endpoint: Endpoint[String, I, Throwable, Stream[Throwable, O], ZioStreams])(payload: I)(using session: Session[UserToken]): Task[Stream[Throwable, O]]
def websocketClient[I, E, WI, WO, R <: Streams[_] & WebSockets](wse: Endpoint[Unit, I, E, Stream[Throwable, WI] => Stream[Throwable, WO], R])(using WebSocketToPipe[R]): I => Task[Stream[Throwable, WI] => Stream[Throwable, WO]]

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product