Caracola.EventCompositor.Publication (Caracola v0.1.0-rc.1)

Copy Markdown View Source

A publication stored by Caracola.EventCompositor. Equivalent to NkSIP's #reg_publish{}: the published data (the body of the PUBLISH), its content_type, the event type (lowercase), its expires time (seconds) and when it was updated (monotonic time).

Summary

Types

t()

A stored publication: its body, content type, event, expiration and last update.

Types

t()

@type t() :: %Caracola.EventCompositor.Publication{
  content_type: Caracola.Tokens.token() | nil,
  data: binary(),
  event: String.t() | nil,
  expires: integer(),
  meta: map(),
  updated: integer() | nil
}

A stored publication: its body, content type, event, expiration and last update.