Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDataIsNil = errors.New("data is nil")
)
Functions ¶
This section is empty.
Types ¶
type Attachment ¶ added in v0.0.2
type DaprEvent ¶
type DaprEvent struct { Topic string `json:"topic"` Pubsubname string `json:"pubsubname"` Traceid string `json:"traceid"` ID string `json:"id"` Datacontenttype string `json:"datacontenttype"` Data Data `json:"data"` Type string `json:"type"` Specversion string `json:"specversion"` Source string `json:"source"` }
type Data ¶
type Data struct { *LetterSpec `json:"letter,omitempty"` *EmailSpec `json:"email,omitempty"` }
type EmailSpec ¶
type EmailSpec struct { To []string `json:"to,omitempty"` Title string `json:"title,omitempty"` ContentType string `json:"content_type,omitempty"` Content string `json:"content,omitempty"` Attachments []Attachment `json:"attachments,omitempty"` }
type LetterSpec ¶
Click to show internal directories.
Click to hide internal directories.