View Source Chaperon.API.OptionParser behaviour (chaperon v0.3.1)

HTTP API option parser behaviour that can be implemented to customize, extend and modify any incoming web request options to be used when scheduling new load tests. Is expected to return a load test configuration to be run and used by Chaperon.Master.schedule_load_test/1.

Link to this section Summary

Link to this section Callbacks

@callback parse_options(%{options: Map.t(), test: String.t()}) ::
  {:ok, Chaperon.LoadTest.lt_conf(), Map.t()}
  | {:ok, [{Chaperon.LoadTest.lt_conf(), Map.t()}]}
  | {:error, String.t()}