Exshome - Elixir Smart Home v0.1.7
  • Pages
  • Modules

    View Source ExshomePlayer.Services.MpvSocket (Exshome - Elixir Smart Home v0.1.7)

    Implementation for MPV socket. It allows to send you some commands to the MPV server.

    Link to this section Summary

    Types

    command_response()

    Functions

    call(message)
    child_spec(opts)
    handle_message(message, state)
    request!(data)
    request(data)
    send_command(payload)
    start_link(opts)
    update_data(state, data_fn)

    See Exshome.Dependency.GenServerDependency.update_data/2.

    Link to this section Types

    Link to this type

    command_response()

    View Source
    @type command_response() :: %{required(String.t()) => term()}

    Link to this section Functions

    Link to this function

    call(message)

    View Source
    Link to this function

    child_spec(opts)

    View Source
    Link to this function

    handle_message(message, state)

    View Source
    Link to this function

    request!(data)

    View Source
    Link to this function

    request(data)

    View Source
    Link to this function

    send_command(payload)

    View Source
    @spec send_command(payload :: [term()]) :: command_response()
    Link to this function

    start_link(opts)

    View Source
    Link to this function

    update_data(state, data_fn)

    View Source

    See Exshome.Dependency.GenServerDependency.update_data/2.

    On Hex.pm: Package Preview (current file)

    Built using ExDoc (v0.28.4) for the Elixir programming language