Versions in this module Expand all Collapse all v0 v0.0.1 Feb 13, 2026 Changes in this version + const ChannelEmail + const ChannelPhone + const ChannelTelegram + const ContentTypeHTML + const ContentTypeMarkdown + const ContentTypeText + const FieldContentType + const FieldInlineAttachments + const FieldSubject + const ParamSender + const ParamUserID + const ParamUserSecret + const RecipientStateDelivered + const RecipientStateError + const RecipientStatePending + const RecipientStateSent + type Attachment struct + ContentBase64 string + ContentType string + Name string + type Attachments []Attachment + type ChannelField struct + Description string + ID string + IsRequired bool + Regex string + Title string + type ChannelID string + type ChannelInfo struct + Fields []ChannelField + ID ChannelID + Title string + type ChannelsResponse []ChannelInfo + type Client struct + func New(config Config) (*Client, error) + func (c *Client) GetChannels(ctx context.Context) (ChannelsResponse, error) + func (c *Client) GetProviders(ctx context.Context) (ProvidersResponse, error) + func (c *Client) SendNotification(ctx context.Context, provider string, request NotificationRequest) (*NotificationResponse, error) + type Config struct + BaseURL string + Client *http.Client + Password string + Username string + type NotificationRequest struct + Fields map[string]string + ID *string + Options map[string]string + Payload string + Recipients []string + type NotificationResponse struct + Error int + ID *string + Recipients []Recipient + Success int + UUID string + type ParamsItem struct + Description string + ID string + IsRequired bool + Regex string + Title string + type ProviderInfo struct + Channels []ChannelID + Description string + Help string + ID string + Params []ParamsItem + Title string + type ProvidersResponse []ProviderInfo + type Recipient struct + Address string + Error *string + State RecipientState + type RecipientState string