# `Caracola.EventCompositor.Publication`
[🔗](https://github.com/netkubes/caracola/blob/v0.1.0-rc.1/lib/caracola/event_compositor/publication.ex#L1)

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).

# `t`

```elixir
@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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
