Versions in this module Expand all Collapse all v1 v1.0.0 Jul 24, 2026 Changes in this version + type ApnsConfig struct + BundleID string + Env string + KeyID string + PrivateKey string + TeamID string + TokenCache TokenCacheHook + func (ApnsConfig) ProviderID() ProviderID + type BrevoConfig struct + APIKey string + From string + SenderName string + func (BrevoConfig) ProviderID() ProviderID + type Casing int + const CamelCase + const ConstantCase + const KebabCase + const PascalCase + const SnakeCase + type ChannelType string + const ChannelChat + const ChannelEmail + const ChannelPush + const ChannelSMS + type Chat struct + func NewChat(cfg ChatConfig, opts ...Option) *Chat + func (c *Chat) ChannelType() ChannelType + func (c *Chat) ProviderID() ProviderID + func (c *Chat) Send(ctx context.Context, in ChatSendInput) (*ChatSendResult, error) + type ChatConfig interface + ProviderID func() ProviderID + type ChatSendInput struct + Body string + Passthrough *Passthrough + To string + type ChatSendResult struct + ProviderMessageID string + Raw any + Status SendStatus + Success bool + type ConnectorError struct + Cause any + Message string + ProviderCode ProviderCode + ProviderMessage string + StatusCode *int + func (e *ConnectorError) Error() string + func (e *ConnectorError) Unwrap() error + type D7NetworksConfig struct + APIToken string + From string + func (D7NetworksConfig) ProviderID() ProviderID + type DiscordConfig struct + WebhookURL string + func (DiscordConfig) ProviderID() ProviderID + type Email struct + func NewEmail(cfg EmailConfig, opts ...Option) *Email + func (e *Email) ChannelType() ChannelType + func (e *Email) ProviderID() ProviderID + func (e *Email) Send(ctx context.Context, in EmailSendInput) (*EmailSendResult, error) + type EmailAttachment struct + Content []byte + ContentID string + ContentType string + Filename string + type EmailConfig interface + ProviderID func() ProviderID + type EmailSendInput struct + Attachments []EmailAttachment + Bcc []string + Cc []string + From string + HTML string + Headers map[string]string + Passthrough *Passthrough + ReplyTo string + Subject string + Tags []string + Text string + To string + type EmailSendResult struct + ProviderMessageID string + Raw any + Status SendStatus + Success bool + type ExpoConfig struct + AccessToken string + func (ExpoConfig) ProviderID() ProviderID + type FcmConfig struct + ClientEmail string + PrivateKey string + ProjectID string + TokenCache TokenCacheHook + func (FcmConfig) ProviderID() ProviderID + type GoogleChatConfig struct + WebhookURL string + func (GoogleChatConfig) ProviderID() ProviderID + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type InfobipConfig struct + APIKey string + BaseURL string + From string + func (InfobipConfig) ProviderID() ProviderID + type LineConfig struct + ChannelAccessToken string + func (LineConfig) ProviderID() ProviderID + type MailerSendConfig struct + APIToken string + From string + SenderName string + func (MailerSendConfig) ProviderID() ProviderID + type MailgunConfig struct + APIKey string + BaseURL string + Domain string + From string + Region string + SenderName string + Username string + func (MailgunConfig) ProviderID() ProviderID + type MailtrapConfig struct + APIToken string + From string + InboxID string + Mode string + SenderName string + func (MailtrapConfig) ProviderID() ProviderID + type MattermostConfig struct + WebhookURL string + func (MattermostConfig) ProviderID() ProviderID + type MessagebirdConfig struct + AccessKey string + From string + func (MessagebirdConfig) ProviderID() ProviderID + type MsTeamsConfig struct + WebhookURL string + func (MsTeamsConfig) ProviderID() ProviderID + type OneSignalConfig struct + APIKey string + AppID string + func (OneSignalConfig) ProviderID() ProviderID + type Option func(*facadeOptions) + func WithHTTPClient(c HTTPClient) Option + type Passthrough struct + Body map[string]any + Headers map[string]string + Query map[string]string + type PlivoConfig struct + AuthID string + AuthToken string + From string + func (PlivoConfig) ProviderID() ProviderID + type PostmarkConfig struct + From string + MessageStream string + SenderName string + ServerToken string + func (PostmarkConfig) ProviderID() ProviderID + type ProviderCode string + const CodeAuthFailed + const CodeInvalidRecipient + const CodeInvalidRequest + const CodeProviderUnavailable + const CodeRateLimited + const CodeUnknown + type ProviderID string + const Apns + const Brevo + const D7Networks + const Discord + const Expo + const Fcm + const GoogleChat + const Infobip + const Line + const Mailersend + const Mailgun + const Mailtrap + const Mattermost + const Messagebird + const MsTeams + const OneSignal + const Plivo + const Postmark + const PusherBeams + const Resend + const RocketChat + const Scaleway + const Sendgrid + const Ses + const Sinch + const Slack + const Sns + const Sparkpost + const Telegram + const Telnyx + const Textmagic + const Twilio + const Vonage + const WhatsAppBusiness + const Wonderpush + type Push struct + func NewPush(cfg PushConfig, opts ...Option) *Push + func (p *Push) ChannelType() ChannelType + func (p *Push) ProviderID() ProviderID + func (p *Push) Send(ctx context.Context, in PushSendInput) (*PushSendResult, error) + type PushConfig interface + ProviderID func() ProviderID + type PushSendInput struct + Body string + Data map[string]string + Passthrough *Passthrough + Title string + To string + type PushSendResult struct + ProviderMessageID string + Raw any + Status SendStatus + Success bool + type PusherBeamsConfig struct + InstanceID string + SecretKey string + func (PusherBeamsConfig) ProviderID() ProviderID + type ResendConfig struct + APIKey string + From string + SenderName string + func (ResendConfig) ProviderID() ProviderID + type RocketChatConfig struct + WebhookURL string + func (RocketChatConfig) ProviderID() ProviderID + type ScalewayConfig struct + From string + ProjectID string + Region string + SecretKey string + SenderName string + func (ScalewayConfig) ProviderID() ProviderID + type SendStatus string + const StatusQueued + const StatusRejected + const StatusSent + const StatusSuppressed + const StatusUnknown + type SendgridConfig struct + APIKey string + From string + SenderName string + func (SendgridConfig) ProviderID() ProviderID + type SesConfig struct + AccessKeyID string + ConfigurationSetName string + From string + Region string + SecretAccessKey string + SenderName string + SessionToken string + func (SesConfig) ProviderID() ProviderID + type SinchConfig struct + APIToken string + From string + Region string + ServicePlanID string + func (SinchConfig) ProviderID() ProviderID + type SlackConfig struct + WebhookURL string + func (SlackConfig) ProviderID() ProviderID + type Sms struct + func NewSms(cfg SmsConfig, opts ...Option) *Sms + func (s *Sms) ChannelType() ChannelType + func (s *Sms) ProviderID() ProviderID + func (s *Sms) Send(ctx context.Context, in SmsSendInput) (*SmsSendResult, error) + type SmsConfig interface + ProviderID func() ProviderID + type SmsSendInput struct + Body string + From string + Passthrough *Passthrough + To string + type SmsSendResult struct + ProviderMessageID string + Raw any + Status SendStatus + Success bool + type SnsConfig struct + AccessKeyID string + Region string + SecretAccessKey string + SessionToken string + func (SnsConfig) ProviderID() ProviderID + type SparkPostConfig struct + APIKey string + From string + Region string + SenderName string + func (SparkPostConfig) ProviderID() ProviderID + type TelegramConfig struct + BotToken string + func (TelegramConfig) ProviderID() ProviderID + type TelnyxConfig struct + APIKey string + From string + func (TelnyxConfig) ProviderID() ProviderID + type TextmagicConfig struct + APIKey string + From string + Username string + func (TextmagicConfig) ProviderID() ProviderID + type TokenCacheHook interface + Get func(key string) (token string, expiresAt time.Time, ok bool) + Set func(key, token string, expiresAt time.Time) + type TwilioConfig struct + AccountSid string + AuthToken string + From string + Region string + func (TwilioConfig) ProviderID() ProviderID + type VonageConfig struct + APIKey string + APISecret string + From string + func (VonageConfig) ProviderID() ProviderID + type WhatsAppBusinessConfig struct + AccessToken string + GraphAPIVersion string + PhoneNumberID string + func (WhatsAppBusinessConfig) ProviderID() ProviderID + type WonderPushConfig struct + AccessToken string + ApplicationID string + func (WonderPushConfig) ProviderID() ProviderID