Packages
server_timing_plug
0.1.0
Plug that can be used to add Server-Timing header metrics to responses
Current section
Files
Jump to
Current section
Files
lib/timing_entry.ex
defmodule ServerTimingPlug.TimingEntry do
@moduledoc false
alias __MODULE__
defstruct [:name, :duration, :description]
def new(name, duration, description) do
%TimingEntry{
name: name,
duration: duration,
description: description
}
end
end