Stargate.Supervisor.start_link
You're seeing just the function
start_link
, go back to Stargate.Supervisor module for more information.
Specs
start_link(keyword()) :: GenServer.on_start()
Creates a Stargate Supervisor and links it to the current process. Pass a keyword list of connection and client information to define the types of websocket connection to establish with the Pulsar cluster.
Example
opts = [
host: [{"broker-url.com", 8080}]
producer: [
... producer configs ...
],
consumer: [
... consumer configs ...
]
]
See the Stargate.Producer
and Stargate.Receiver
modules for the full
list of configuration options to each type of client connection.