exred_node_grpc_server v0.1.2-alpha Exredrpc.Broker

handles inbound messages from the grpc chat stream (a gRPC client connects to the MessageBus service and calls the Chat rpc)

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Incoming message from the elixir side. Look up the bond struct based on the pid (from) and forward message to the GRPC outgoing stream

Incoming message from the gRPC side. Look up the bond struct based on the pid (from) and forward message to the exred node (ex_twin)

Link to this section Functions

Link to this function bond_ex(bond_id, twin)
bond_ex(String.t(), Exredrpc.Twin.Ex.t()) :: :ok | {:error, term()}
Link to this function bond_grpc(bond_id, twin)
bond_grpc(String.t(), Exredrpc.Twin.Grpc.t()) :: :ok | {:error, term()}
Link to this function child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function msg_from_ex(msg)
msg_from_ex(term()) :: term()
msg_from_ex(Exredrpc.Msg.t()) :: term()

Incoming message from the elixir side. Look up the bond struct based on the pid (from) and forward message to the GRPC outgoing stream

Link to this function msg_from_grpc(msg)

Incoming message from the gRPC side. Look up the bond struct based on the pid (from) and forward message to the exred node (ex_twin)

Link to this function start_link(args)