Current section

Files

Jump to
tai lib tai fleets fleet_config.ex
Raw

lib/tai/fleets/fleet_config.ex

defmodule Tai.Fleets.FleetConfig do
@type id :: atom
@type t :: %__MODULE__{
id: id,
start_on_boot: boolean,
restart: :permanent | :transient | :temporary,
shutdown: timeout | :brutal_kill,
market_streams: String.t(),
factory: module,
advisor: module,
config: struct | map
}
@enforce_keys ~w[
id
start_on_boot
restart
shutdown
market_streams
factory
advisor
]a
defstruct ~w[
id
start_on_boot
restart
shutdown
market_streams
factory
advisor
config
]a
defimpl Stored.Item do
def key(f), do: f.id
end
end