Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapMailToNotificationChannel ¶
func MapMailToNotificationChannel(mail MailNotificationChannelRequest) models.NotificationChannel
Types ¶
type CheckMailServerEntityRequest ¶
type CheckMailServerEntityRequest struct {
Domain string `json:"domain"`
Port int `json:"port"`
IsAuthenticationRequired bool `json:"isAuthenticationRequired" default:"false"`
IsTlsEnforced bool `json:"isTlsEnforced" default:"false"`
Username string `json:"username"`
Password string `json:"password"`
}
CheckMailServerEntityRequest check mail server entity request
func (*CheckMailServerEntityRequest) Cleanup ¶
func (r *CheckMailServerEntityRequest) Cleanup()
func (CheckMailServerEntityRequest) ToModel ¶
func (v CheckMailServerEntityRequest) ToModel() models.NotificationChannel
func (CheckMailServerEntityRequest) Validate ¶
func (v CheckMailServerEntityRequest) Validate() models.ValidationErrors
type CheckMailServerRequest ¶
type CheckMailServerRequest struct {
Domain string `json:"domain"`
Port int `json:"port"`
IsAuthenticationRequired bool `json:"isAuthenticationRequired" default:"false"`
IsTlsEnforced bool `json:"isTlsEnforced" default:"false"`
Username string `json:"username"`
Password string `json:"password"`
}
CheckMailServerRequest check mail server request
func (*CheckMailServerRequest) Cleanup ¶
func (r *CheckMailServerRequest) Cleanup()
func (CheckMailServerRequest) ToModel ¶
func (v CheckMailServerRequest) ToModel() models.NotificationChannel
func (CheckMailServerRequest) Validate ¶
func (v CheckMailServerRequest) Validate() models.ValidationErrors
type MailNotificationChannelRequest ¶
type MailNotificationChannelRequest struct {
Id *string `json:"id,omitempty"`
ChannelName string `json:"channelName"`
Domain string `json:"domain"`
Port int `json:"port"`
IsAuthenticationRequired bool `json:"isAuthenticationRequired" default:"false"`
IsTlsEnforced bool `json:"isTlsEnforced" default:"false"`
Username *string `json:"username,omitempty"`
Password *string `json:"password,omitempty"`
MaxEmailAttachmentSizeMb *int `json:"maxEmailAttachmentSizeMb,omitempty"`
MaxEmailIncludeSizeMb *int `json:"maxEmailIncludeSizeMb,omitempty"`
SenderEmailAddress string `json:"senderEmailAddress"`
}
MailNotificationChannelRequest mail notification channel request
func (*MailNotificationChannelRequest) Cleanup ¶
func (r *MailNotificationChannelRequest) Cleanup()
func (MailNotificationChannelRequest) Validate ¶
func (r MailNotificationChannelRequest) Validate() models.ValidationErrors
type MailNotificationChannelResponse ¶
type MailNotificationChannelResponse struct {
Id string `json:"id,omitempty"`
ChannelName string `json:"channelName"`
Domain string `json:"domain"`
Port int `json:"port"`
IsAuthenticationRequired bool `json:"isAuthenticationRequired" default:"false"`
IsTlsEnforced bool `json:"isTlsEnforced" default:"false"`
Username *string `json:"username,omitempty"`
MaxEmailAttachmentSizeMb *int `json:"maxEmailAttachmentSizeMb,omitempty"`
MaxEmailIncludeSizeMb *int `json:"maxEmailIncludeSizeMb,omitempty"`
SenderEmailAddress string `json:"senderEmailAddress"`
}
func MapNotificationChannelToMail ¶
func MapNotificationChannelToMail(channel models.NotificationChannel) MailNotificationChannelResponse
MapNotificationChannelToMail maps NotificationChannel to MailNotificationChannelResponse.
func MapNotificationChannelsToMail ¶
func MapNotificationChannelsToMail(channels []models.NotificationChannel) []MailNotificationChannelResponse
MapNotificationChannelsToMail maps a slice of NotificationChannel to MailNotificationChannelRequest.
Click to show internal directories.
Click to hide internal directories.