Current section
Files
Jump to
Current section
Files
lib/majic/server/status.ex
defmodule Majic.Server.Status do
@moduledoc """
Represents Status of the underlying Server.
"""
@typedoc """
Represnets Staus of the Server.
- `:state`: Represents the current state of the Server
- `:cycles`: Represents the number of cycles the Server has run; note that this resets if
recycling is enabled.
"""
@type t :: %__MODULE__{
state: Majic.Server.state(),
cycles: non_neg_integer()
}
defstruct state: nil, cycles: 0
end