Versions in this module Expand all Collapse all v0 v0.20.0 Dec 19, 2024 v0.19.0 Sep 19, 2024 Changes in this version + type CloudEvent struct + Data any + DataSchema string + ID string + Source string + SpecVersion string + Subject string + Time time.Time + Type string + func NewCloudEvent(source, eventType string, data any, options ...CloudEventOption) (CloudEvent, error) + func (e CloudEvent) JSON() []byte + type CloudEventOption func(o *CloudEventOptions) + type CloudEventOptions struct + DataSchema string + ID string + SpecVersion string + Subject string + Time time.Time + type Event struct + Data any + DataVersion string + ID string + MetadataVersion string + Subject string + Time time.Time + Topic string + Type string + func NewEvent(subject, eventType string, data any, options ...EventGridEventOption) (Event, error) + func (e Event) JSON() []byte + type EventGridEventOption func(o *EventOptions) + type EventOptions struct + DataVersion string + ID string + MetadataVersion string + Time time.Time + Topic string + type Schema string + const SchemaCloudEvents + const SchemaEventGrid