View Source ExshomeTest.TestMpvServer (Exshome - Elixir Smart Home v0.1.3)
Test MPV server. You can use it to emulate an MPV server.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Types
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec default_response_handler( request_id :: String.t(), request_data :: map(), state :: ExshomeTest.TestMpvServer.State.t() ) :: {:noreply, ExshomeTest.TestMpvServer.State.t()}
@spec generate_random_tracks(Range.t()) :: :ok
@spec last_received_message() :: map()
@spec playlist() :: [String.t()]
@spec received_messages() :: [map()]
@spec server_fixture() :: term()
@spec set_response_fn(function :: response_fn()) :: term()
@spec set_response_fn(server :: pid(), response_fn :: response_fn()) :: term()
@spec start_link(ExshomeTest.TestMpvServer.Arguments.t()) :: GenServer.on_start()
@spec stop_server() :: :ok