Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cycle ¶
type Notification ¶
type Notification struct { Name string `bson:"name"` Subject string `bson:"subject"` Html string `bson:"html"` TaskName string `bson:"task_name"` Text string `bson:"text"` HasAttachment bool `bson:"has_attachment"` }
func GetNotification ¶
func GetNotification(TaskName string) (Notification, error)
GetNotification returns a notification template by task name
type Phish ¶
type PrimaryContact ¶
type Subscription ¶
type Subscription struct { Name string `bson:"name"` CustomerID string `bson:"customer_id"` SendingProfileID string `bson:"sending_profile_id"` TargetDomain string `bson:"target_domain"` Customer string `bson:"customer"` StartDate time.Time `bson:"start_date"` PrimaryContact PrimaryContact `bson:"primary_contact"` AdminEmail string `bson:"admin_email"` OperatorEmail string `bson:"operator_email"` Status string `bson:"status"` CycleStartDate string `bson:"cycle_start_date"` TargetEmailList []TargetEmail `bson:"target_email_list"` TemplatesSelected []string `bson:"templates_selected"` NextTemplates []string `bson:"next_templates"` ContinuousSubscription bool `bson:"continuous_subscription"` BufferTimeMinutes int `bson:"buffer_time_minutes"` CycleLengthMinutes int `bson:"cycle_length_minutes"` CooldownMinutes int `bson:"cooldown_minutes"` ReportFrequencyMinutes int `bson:"report_frequency_minutes"` Tasks []SubscriptionTasks `bson:"tasks"` Processing bool `bson:"processing"` Archived bool `bson:"archived"` }
func GetSubscription ¶
func GetSubscription(id string) (Subscription, error)
GetSubscription returns a notification template by task name
type SubscriptionTasks ¶
Click to show internal directories.
Click to hide internal directories.