Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DigestFlow ¶
type DigestFlow struct { Timing DigestTiming `bson:"timing" json:"timing"` // EventTime Timing == DigestEvent, seconds EventTime int `bson:"eventTime" json:"eventTime"` }
type DigestTiming ¶
type DigestTiming string
const ( DigestEvent DigestTiming = "event" DigestSchedule DigestTiming = "schedule" )
type Notification ¶
type Step ¶
type Step struct { Digest bool `json:"digest"` Events []json.RawMessage `json:"events"` TotalCount int `json:"totalCount"` }
type Subscriber ¶
type Workflow ¶
type Workflow struct { Name string `json:"name"` Revision int64 `json:"revision"` Flow []*WorkflowFlowItem `json:"flow"` }
type WorkflowFlowItem ¶
type WorkflowFlowItem struct { Type FlowType `bson:"type" json:"type"` // Type == FlowDigest Digest *DigestFlow `bson:"digest,omitempty" json:"digest,omitempty"` // Type == FlowNotification or FlowEmail SubjectTemplate string `bson:"subjectTemplate,omitempty" json:"subjectTemplate,omitempty"` // Type == FlowEmail ContentTemplate string `bson:"contentTemplate,omitempty" json:"contentTemplate,omitempty"` }
type WorkflowTriggerRequest ¶
type WorkflowTriggerRequest struct { Tenant Tenant `json:"tenant"` Subscriber Subscriber `json:"subscriber"` Event map[string]any `json:"event"` }
type WorkflowTriggerResponse ¶
type WorkflowTriggerResponse struct {
EventId string `json:"eventId"`
}
Click to show internal directories.
Click to hide internal directories.