Module turtle_service

Manage a turtle service.

Behaviours: supervisor.

Description

Manage a turtle service. These services listen on AMQP and processes data on an AMQP socket. For each incoming message, it calls function which can then be used to do work in the system.

Function Index

child_spec/1Generate a child specification for this supervisor The Configuration is a map with the following keys:.
start_link/1Start the service supervisor tree For the definition of the Conf parameter, see child_spec/1

Function Details

child_spec/1

child_spec(Conf) -> any()

Generate a child specification for this supervisor The Configuration is a map with the following keys:

name
The name of the service (for gproc registration)
connection
The turtle connection id to use
function
The function to call when processing an event
handle_info
The function to call when processing a message
init_state
Initial state to use in the processing loop
declarations
A list of declarations to execute against the AMQP server when starting up. The format is as you would normally cast to an AMQP channel.
subscriber_count
Number of children to run in the subscriber pool
prefetch_count
The prefetch setting on the channel for QoS and hiding network latency.
consume_queue
The queue to consume from for this service.
passive
true/false value - designates if we should force passive queue/exchange creation.

start_link/1

start_link(Conf) -> any()

Start the service supervisor tree For the definition of the Conf parameter, see child_spec/1


Generated by EDoc