Documentation ¶ Overview ¶ Package cloudevent models CloudEvents. Index ¶ type Event func New[T any](id, source string, created time.Time, data T) Event[T] Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Event ¶ type Event[T any] struct { SpecVersion string `json:"specversion"` Type string `json:"type"` Source string `json:"source"` Time time.Time `json:"time"` ID string `json:"id"` DataContentType string `json:"datacontenttype"` Data T `json:"data"` } func New ¶ func New[T any](id, source string, created time.Time, data T) Event[T] Source Files ¶ View all Source files cloudevents.go Click to show internal directories. Click to hide internal directories.