maildto

package
v0.12.1-alpha4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 (CheckMailServerEntityRequest) Validate

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 (CheckMailServerRequest) Validate

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL