retort v2.7.0 Retort.Server.Generic.Resources View Source
Exposes an Ecto.Schema.t
as a JSONAPI resource over JSON RPC on a RabbitMQ queue.
Any code with side-effects, such as Logger
or Repo
calls should stay in this module. Any pure functions that
write back to the Retort.Server.Generic.RPC.t
can be in Retort.Server.Generic.RPC
.
Link to this section Summary
Functions
Sets connection, channel, and queue to Rabbit
Link to this section Functions
Link to this function
init(generic, state)
View Source
init(Retort.Server.Generic.t(), Calcinator.t()) :: {:ok, Calcinator.t()}
Sets connection, channel, and queue to Rabbit