Documentation
¶
Index ¶
Constants ¶
View Source
const (
DataContentTypeJson = "application/json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudEvent ¶
type CloudEvent struct { SpecVersion string `json:"specversion"` ID string `json:"id"` Type string `json:"type"` Source string `json:"source"` DataContentType string `json:"datacontenttype"` Time string `json:"time"` Data []byte `json:"data"` }
func NewCloudEvent ¶
func NewCloudEventJson ¶
func UnmarshalJsonCloudEvent ¶
func UnmarshalJsonCloudEvent(cloudEventJsonBytes []byte) (*CloudEvent, error)
func (*CloudEvent) MarshalJson ¶
func (event *CloudEvent) MarshalJson() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.