Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudEvent ¶
type CloudEvent struct { EventType string `envconfig:"type" default:"ce.klr.triggermesh.io"` Source string `envconfig:"source" default:"knative-lambda-runtime"` Subject string `envconfig:"subject" default:"klr-response"` }
CloudEvent is a data structure required to map KLR responses to cloudevents
func New ¶
func New() (*CloudEvent, error)
func (*CloudEvent) ContentType ¶
func (ce *CloudEvent) ContentType() string
Click to show internal directories.
Click to hide internal directories.