Events

object Events(source)

Tiny shared helpers used when assembling event payloads in outbound adapters.

No marker interface for events is exported on purpose — see README.md for the rationale (Avro-generated SpecificRecord classes already provide everything we need, a custom DomainEvent interface would be dead code).

Functions

Link copied to clipboard
fun newId(): String

Returns a fresh UUID v4 string suitable for use as an eventId.

Link copied to clipboard
fun now(): Instant

Returns the current instant. Indirection kept for test stubbing convenience.