Runlet.Event (runlet v1.2.7)

View Source

Runlet events

Summary

Functions

Takes all entries corresponding to the given keys in the contained event and extracts them into a separate map.

Convert the contained event to a map.

Types

t()

@type t() :: %Runlet.Event{
  attr: %{optional(atom()) => integer() | float() | binary()},
  event: any(),
  query: binary()
}

Functions

split(e, k)

@spec split(struct() | map(), [any()]) :: {map(), map()}

Takes all entries corresponding to the given keys in the contained event and extracts them into a separate map.

to_map(e)

@spec to_map(struct() | map()) :: map()

Convert the contained event to a map.