EventData

sec.EventData
See theEventData companion class
object EventData

Attributes

Companion
class
Source
event.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
EventData.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

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 parameters

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.

Attributes

Source
event.scala
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 parameters

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.

Attributes

Source
event.scala
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 parameters

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.

Attributes

Source
event.scala