View Source Spear.StreamMetadata (Spear v1.4.0)

A struct for describing the metadata about a stream

Link to this section Summary

Types

t()

Internal and custom metadata about a stream

Functions

Converts a stream metadata struct to a map in the format EventStoreDB expects

Link to this section Types

@type t() :: %Spear.StreamMetadata{
  acl: Spear.Acl.t() | nil,
  cache_control: pos_integer() | nil,
  custom: %{required(String.t()) => any()} | nil,
  max_age: pos_integer() | nil,
  max_count: pos_integer() | nil,
  truncate_before: pos_integer() | nil
}

Internal and custom metadata about a stream

See the EventStoreDB stream metadata documentation for more details.

Link to this section Functions

Converts a stream metadata struct to a map in the format EventStoreDB expects