ProtobufCommandProtocol

endless.protobuf.ProtobufCommandProtocol
trait ProtobufCommandProtocol[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 <: GeneratedMessage : GeneratedMessageCompanion, A](run: Alg[F] => F[A], replyContramapper: A => R): IncomingCommand[F, Alg]
protected def sendCommand[F[_], C <: GeneratedMessage : GeneratedMessageCompanion, R <: GeneratedMessage : GeneratedMessageCompanion, A](id: ID, command: C, replyMapper: R => A)(implicit evidence$1: GeneratedMessageCompanion[C], evidence$2: GeneratedMessageCompanion[R], sender: CommandSender[F, ID]): F[A]

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