LocationSimulator.Worker (LocationSimulator v1.1.0)

Copy Markdown View Source

Runs a GPS simulation loop using a plug pipeline.

The worker resolves the pipeline module, builds the per-event plug chain, fires lifecycle callbacks, and loops until the event counter is exhausted or a stop signal arrives.

GPX replay data (the remaining track points) lives in the worker state, not in the config, so user callbacks never receive it.

Summary

Functions

start_link(arg)

@spec start_link(map()) :: {:ok, pid()}

start_link(module, arg)

@spec start_link(module(), map()) :: {:ok, pid()}