EventData

object EventData
Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def apply(eventType: EventType, eventId: UUID, data: ByteVector, contentType: ContentType): EventData

Constructor for EventData when metadata is not required.

Constructor for EventData when metadata is not required.

Value Params
contentType

the ContentType of encoded data and metadata.

data

a scodec.bits.ByteVector of encoded data.

eventId

unique identifier for the event.

eventType

the EventType for the event.

def apply(eventType: String, eventId: UUID, data: ByteVector, contentType: ContentType): Either[InvalidInput, EventData]

Constructor for EventData when the event type is a string and metadata is not required. Returns either InvalidInput or EventType.

Constructor for EventData when the event type is a string and metadata is not required. Returns either InvalidInput or EventType.

Value Params
contentType

the ContentType of encoded data and metadata.

data

a scodec.bits.ByteVector of encoded data.

eventId

unique identifier for the event.

eventType

string value for EventType.

def apply(eventType: String, eventId: UUID, data: ByteVector, metadata: ByteVector, contentType: ContentType): Either[InvalidInput, EventData]

Constructor for EventData when the event type is a string.

Constructor for EventData when the event type is a string.

Value Params
contentType

the ContentType of encoded data and metadata.

data

a scodec.bits.ByteVector of encoded data.

eventId

unique identifier for the event.

eventType

string value for EventType.

metadata

a scodec.bits.ByteVector of encoded metadata.