Documentation
¶
Index ¶
Constants ¶
View Source
const ( CloudEventsHeaderType = "ce_type" CloudEventsHeaderTime = "ce_time" CloudEventsHeaderSource = "ce_source" CloudEventsHeaderSubject = "ce_subject" )
View Source
const (
UnknownEventName = "io.openmeter.unknown"
)
Variables ¶
This section is empty.
Functions ¶
func NewCloudEvent ¶
func NewCloudEvent(ev Event) (cloudevents.Event, error)
Types ¶
type Event ¶
type Event interface { EventName() string EventMetadata() metadata.EventMetadata Validate() error }
func WithSource ¶
WithSource can be used to add the CloudEvents source field to an event.
type Marshaler ¶
type Marshaler = cqrs.CommandEventMarshaler
func New ¶
func New(transform TransformFunc) Marshaler
type TransformFunc ¶
Click to show internal directories.
Click to hide internal directories.