Kvasir.Event (kvasir v0.0.15) 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)

Specs

event?(any()) :: boolean()
Link to this macro

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

View Source (macro)

Specs

id(t()) :: term()

Specs

key(t()) :: term()

Specs

on_error(t()) :: :halt | :skip

Specs

partition(t()) :: non_neg_integer()
Link to this function

property(caller, name, type, opts)

View Source

Specs

set_key(t(), term()) :: t()

Set a key for an event.

Specs

set_key_type(t(), module()) :: t()

Set a key type for an event.

Specs

set_offset(t(), term()) :: t()

Set an offset for an event.

Link to this function

set_partition(e, partition)

View Source

Specs

set_partition(t(), term()) :: t()

Set a partition for an event.

Specs

set_source(t(), module()) :: t()

Set a source for an event.

Link to this function

set_timestamp(e, timestamp)

View Source

Specs

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

Set a timestamp for an event.

Specs

set_topic(t(), term()) :: t()

Set a topic for an event.

Specs

sub_key(t()) :: term()

Specs

timestamp(t()) :: UTCDateTime.t()

Specs

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)