CirceCommandProtocol

endless.circe.CirceCommandProtocol
trait CirceCommandProtocol[ID, Alg[_[_]]] extends CommandProtocol[ID, Alg]

Attributes

Graph
Supertypes
trait CommandProtocol[ID, Alg]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

protected def handleCommand[F[_], R : Encoder](run: Alg[F] => F[R]): IncomingCommand[F, Alg]
protected def sendCommand[F[_], C : Encoder, R : Decoder](id: ID, command: C)(implicit evidence$1: Encoder[C], evidence$2: Decoder[R], sender: CommandSender[F, ID]): F[R]

Inherited methods

def clientFor[F[_]](id: ID)(implicit sender: CommandSender[F, ID]): Alg[F]

Returns an instance of entity algebra that translates calls into commands, sends them via the CommandSender instance in implicit scope, and decodes the reply (implements an RPC-like client).

Returns an instance of entity algebra that translates calls into commands, sends them via the CommandSender instance in implicit scope, and decodes the reply (implements an RPC-like client).

Attributes

Inherited from:
CommandProtocol
def server[F[_]]: Decoder[IncomingCommand[F, Alg]]

Decoder for IncomingCommand[F, Alg] which can run the command and encode the reply

Decoder for IncomingCommand[F, Alg] which can run the command and encode the reply

Type parameters

F

context

Attributes

Inherited from:
CommandProtocol