kvasir v0.0.5 Kvasir.Event View Source

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)
Link to this macro

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

View Source (macro)
Link to this function

on_error(arg1)

View Source
on_error(t()) :: :halt | :skip
Link to this function

property(caller, name, type, opts)

View Source
Link to this function

set_key(e, key)

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

Set a key for an event.

Link to this function

set_key_type(e, type)

View Source
set_key_type(t(), module()) :: t()

Set a key type for an event.

Link to this function

set_offset(e, offset)

View Source
set_offset(t(), term()) :: t()

Set an offset for an event.

Link to this function

set_partition(e, partition)

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

Set a partition for an event.

Link to this function

set_source(e, source)

View Source
set_source(t(), module()) :: t()

Set a source for an event.

Link to this function

set_timestamp(e, timestamp)

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

Set a timestamp for an event.

Link to this function

set_topic(e, topic)

View Source
set_topic(t(), term()) :: t()

Set a topic for an event.

Link to this function

sub_key(arg1)

View Source
sub_key(t()) :: term()
Link to this function

timestamp(arg1)

View Source
timestamp(t()) :: UTCDateTime.t()
Link to this function

type(event)

View Source
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)