miniBill / elm-faster-benchmark / FastBenchmark.Frontend

Main application

app : FastBenchmark.Config.Config graph function -> Ports (Msg graph function) -> Program graph function

Main frontend app.

Types


type alias Flags =
{ workersCount : Basics.Int }

Flags needed for the frontend.


type Msg graph function

The message type for the frontend.


type Model graph function

The frontend model.


type alias Ports msg =
{ terminateAll : {} -> Platform.Cmd.Cmd msg
, fromBackend : ({ index : Basics.Int
, data : Codec.Value } -> msg) -> Platform.Sub.Sub msg
, toBackend : { index : Basics.Int
, data : Codec.Value } -> Platform.Cmd.Cmd msg 
}

Ports needed for the frontend.


type alias Program graph function =
Platform.Program Flags (Model graph function) (Msg graph function)

A convenient type for a frontend Program.