freddy v0.10.2 Freddy.RPC.Request
RPC Request data structure. Applications may modify this data structure. For example, one might want to add some specific publication option to every request, or change routing key, based on request payload, or just add some application-specific meta-information.
Link to this section Summary
Types
Request identifier. Used only internally, can be anything
Request meta information. Application can put their specific data here
Request options
Request payload
Request routing key
Link to this section Types
Request identifier. Used only internally, can be anything
Request meta information. Application can put their specific data here
Request options
Request payload
Request routing key
Link to this section Functions
Link to this function
duration(req, granularity \\ :milliseconds)
duration(t, granularity :: System.time_unit) :: integer
Link to this function
put_option(req, option, value)
Link to this function
start(id, payload, routing_key, options)
start(id, payload, routing_key, options) :: t
Link to this function
update_routing_key(req, new_routing_key)
update_routing_key(t, routing_key) :: t