View Source Kvasir.Event (kvasir v0.0.18)

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function

decode(topic, event, opts \\ [])

View Source

See Kvasir.Event.Encoding.decode/3.

See Kvasir.Event.Encoding.encode/1.

Link to this function

encode(topic, event, opts \\ [])

View Source

See Kvasir.Event.Encoding.encode/3.

Link to this macro

event(type, list)

View Source (macro)
@spec event?(any()) :: boolean()
Link to this macro

field(name, type \\ :string, opts \\ [])

View Source (macro)
@spec id(t()) :: term()
@spec key(t()) :: term()
@spec on_error(t()) :: :halt | :skip
@spec partition(t()) :: non_neg_integer()
Link to this function

property(caller, name, type, opts)

View Source
@spec set_key(t(), term()) :: t()

Set a key for an event.

@spec set_key_type(t(), module()) :: t()

Set a key type for an event.

@spec set_offset(t(), term()) :: t()

Set an offset for an event.

Link to this function

set_partition(e, partition)

View Source
@spec set_partition(t(), term()) :: t()

Set a partition for an event.

@spec set_source(t(), module()) :: t()

Set a source for an event.

Link to this function

set_timestamp(e, timestamp)

View Source
@spec set_timestamp(t(), UTCDateTime.t()) :: t()

Set a timestamp for an event.

@spec set_topic(t(), term()) :: t()

Set a topic for an event.

@spec sub_key(t()) :: term()
@spec timestamp(t()) :: UTCDateTime.t()
@spec type(t()) :: String.t() | nil
Link to this macro

upgrade(version, list)

View Source (macro)
Link to this macro

version(version, updated \\ nil)

View Source (macro)