Sonda v0.2.0 Sonda.Sink.Memory View Source

Link to this section Summary

Link to this section Types

Link to this type

accepted_signals()

View Source
accepted_signals() :: :any | [Sonda.Sink.signal()]
Link to this type

config_opts()

View Source
config_opts() :: [{:signals, accepted_signals()}]
Link to this type

matcher()

View Source
matcher() :: (record() -> boolean())
Link to this type

t()

View Source
t() :: %Sonda.Sink.Memory{records: [record()], signals: accepted_signals()}

Link to this section Functions

Link to this function

configure()

View Source
configure() :: t()
Link to this function

configure(opts \\ [])

View Source
configure(opts :: config_opts()) :: t()
Link to this function

one_record(sink, match)

View Source
one_record(sink :: t(), match :: matcher()) ::
  {:ok, record()} | {:error, :none} | {:error, :multiple}
Link to this function

record(sink, signal, timestamp, data)

View Source
record(
  sink :: t(),
  signal :: Sonda.Sink.signal(),
  timestamp :: NaiveDateTime.t(),
  data :: any()
) :: t()
Link to this function

record_signal?(sink, signal)

View Source
record_signal?(sink :: t(), signal :: Sonda.Sink.signal()) :: boolean()
Link to this function

recorded?(sink, match)

View Source
recorded?(sink :: t(), match :: matcher()) :: boolean()
Link to this function

recorded_once?(sink, match)

View Source
recorded_once?(sink :: t(), match :: matcher()) :: boolean()
Link to this function

records(sink)

View Source
records(sink :: t()) :: [record()]
Link to this function

records(sink, match)

View Source
records(sink :: t(), match :: matcher()) :: [record()]