View Source Beacon.Content.PageEvent (Beacon v0.3.3)

Represents a point in time when a Beacon.Content.Page was created, published, or unpublished.

At that time, a Beacon.Content.PageSnapshot is created and stored with the PageEvent.

Do not create or edit page events manually

Use the public functions in Beacon.Content instead. The functions in that module guarantee that all dependencies are created correctly and all processes are updated. Manipulating data manually will most likely result in inconsistent behavior and crashes.

Summary

Types

The event name. Can be one of :created, :published, :unpublished

t()

Types

event()

@type event() :: :created | :published | :unpublished

The event name. Can be one of :created, :published, :unpublished

t()

@type t() :: %Beacon.Content.PageEvent{
  __meta__: term(),
  event: event(),
  id: Ecto.UUID.t(),
  inserted_at: DateTime.t(),
  page: Beacon.Content.Page.t(),
  page_id: Ecto.UUID.t(),
  site: Beacon.Types.Site.t(),
  snapshot: term()
}