Documentation
¶
Index ¶
- type CreateApnsProviderOption
- func WithCreateApnsProviderAuthKey(v string) CreateApnsProviderOption
- func WithCreateApnsProviderAuthKeyId(v string) CreateApnsProviderOption
- func WithCreateApnsProviderBundleId(v string) CreateApnsProviderOption
- func WithCreateApnsProviderEnabled(v bool) CreateApnsProviderOption
- func WithCreateApnsProviderSandbox(v bool) CreateApnsProviderOption
- func WithCreateApnsProviderTeamId(v string) CreateApnsProviderOption
- type CreateApnsProviderOptions
- type CreateEmailOption
- func WithCreateEmailAttachments(v []interface{}) CreateEmailOption
- func WithCreateEmailBcc(v []interface{}) CreateEmailOption
- func WithCreateEmailCc(v []interface{}) CreateEmailOption
- func WithCreateEmailDraft(v bool) CreateEmailOption
- func WithCreateEmailHtml(v bool) CreateEmailOption
- func WithCreateEmailScheduledAt(v string) CreateEmailOption
- func WithCreateEmailTargets(v []interface{}) CreateEmailOption
- func WithCreateEmailTopics(v []interface{}) CreateEmailOption
- func WithCreateEmailUsers(v []interface{}) CreateEmailOption
- type CreateEmailOptions
- type CreateFcmProviderOption
- type CreateFcmProviderOptions
- type CreateMailgunProviderOption
- func WithCreateMailgunProviderApiKey(v string) CreateMailgunProviderOption
- func WithCreateMailgunProviderDomain(v string) CreateMailgunProviderOption
- func WithCreateMailgunProviderEnabled(v bool) CreateMailgunProviderOption
- func WithCreateMailgunProviderFromEmail(v string) CreateMailgunProviderOption
- func WithCreateMailgunProviderFromName(v string) CreateMailgunProviderOption
- func WithCreateMailgunProviderIsEuRegion(v bool) CreateMailgunProviderOption
- func WithCreateMailgunProviderReplyToEmail(v string) CreateMailgunProviderOption
- func WithCreateMailgunProviderReplyToName(v string) CreateMailgunProviderOption
- type CreateMailgunProviderOptions
- type CreateMsg91ProviderOption
- type CreateMsg91ProviderOptions
- type CreatePushOption
- func WithCreatePushAction(v string) CreatePushOption
- func WithCreatePushBadge(v string) CreatePushOption
- func WithCreatePushColor(v string) CreatePushOption
- func WithCreatePushData(v interface{}) CreatePushOption
- func WithCreatePushDraft(v bool) CreatePushOption
- func WithCreatePushIcon(v string) CreatePushOption
- func WithCreatePushImage(v string) CreatePushOption
- func WithCreatePushScheduledAt(v string) CreatePushOption
- func WithCreatePushSound(v string) CreatePushOption
- func WithCreatePushTag(v string) CreatePushOption
- func WithCreatePushTargets(v []interface{}) CreatePushOption
- func WithCreatePushTopics(v []interface{}) CreatePushOption
- func WithCreatePushUsers(v []interface{}) CreatePushOption
- type CreatePushOptions
- type CreateSendgridProviderOption
- func WithCreateSendgridProviderApiKey(v string) CreateSendgridProviderOption
- func WithCreateSendgridProviderEnabled(v bool) CreateSendgridProviderOption
- func WithCreateSendgridProviderFromEmail(v string) CreateSendgridProviderOption
- func WithCreateSendgridProviderFromName(v string) CreateSendgridProviderOption
- func WithCreateSendgridProviderReplyToEmail(v string) CreateSendgridProviderOption
- func WithCreateSendgridProviderReplyToName(v string) CreateSendgridProviderOption
- type CreateSendgridProviderOptions
- type CreateSmsOption
- type CreateSmsOptions
- type CreateSmtpProviderOption
- func WithCreateSmtpProviderAutoTLS(v bool) CreateSmtpProviderOption
- func WithCreateSmtpProviderEnabled(v bool) CreateSmtpProviderOption
- func WithCreateSmtpProviderEncryption(v string) CreateSmtpProviderOption
- func WithCreateSmtpProviderFromEmail(v string) CreateSmtpProviderOption
- func WithCreateSmtpProviderFromName(v string) CreateSmtpProviderOption
- func WithCreateSmtpProviderMailer(v string) CreateSmtpProviderOption
- func WithCreateSmtpProviderPassword(v string) CreateSmtpProviderOption
- func WithCreateSmtpProviderPort(v int) CreateSmtpProviderOption
- func WithCreateSmtpProviderReplyToEmail(v string) CreateSmtpProviderOption
- func WithCreateSmtpProviderReplyToName(v string) CreateSmtpProviderOption
- func WithCreateSmtpProviderUsername(v string) CreateSmtpProviderOption
- type CreateSmtpProviderOptions
- type CreateTelesignProviderOption
- func WithCreateTelesignProviderApiKey(v string) CreateTelesignProviderOption
- func WithCreateTelesignProviderCustomerId(v string) CreateTelesignProviderOption
- func WithCreateTelesignProviderEnabled(v bool) CreateTelesignProviderOption
- func WithCreateTelesignProviderFrom(v string) CreateTelesignProviderOption
- type CreateTelesignProviderOptions
- type CreateTextmagicProviderOption
- func WithCreateTextmagicProviderApiKey(v string) CreateTextmagicProviderOption
- func WithCreateTextmagicProviderEnabled(v bool) CreateTextmagicProviderOption
- func WithCreateTextmagicProviderFrom(v string) CreateTextmagicProviderOption
- func WithCreateTextmagicProviderUsername(v string) CreateTextmagicProviderOption
- type CreateTextmagicProviderOptions
- type CreateTopicOption
- type CreateTopicOptions
- type CreateTwilioProviderOption
- type CreateTwilioProviderOptions
- type CreateVonageProviderOption
- type CreateVonageProviderOptions
- type ListMessageLogsOption
- type ListMessageLogsOptions
- type ListMessagesOption
- type ListMessagesOptions
- type ListProviderLogsOption
- type ListProviderLogsOptions
- type ListProvidersOption
- type ListProvidersOptions
- type ListSubscriberLogsOption
- type ListSubscriberLogsOptions
- type ListSubscribersOption
- type ListSubscribersOptions
- type ListTargetsOption
- type ListTargetsOptions
- type ListTopicLogsOption
- type ListTopicLogsOptions
- type ListTopicsOption
- type ListTopicsOptions
- type Messaging
- func (srv *Messaging) CreateApnsProvider(ProviderId string, Name string, optionalSetters ...CreateApnsProviderOption) (*models.Provider, error)
- func (srv *Messaging) CreateEmail(MessageId string, Subject string, Content string, ...) (*models.Message, error)
- func (srv *Messaging) CreateFcmProvider(ProviderId string, Name string, optionalSetters ...CreateFcmProviderOption) (*models.Provider, error)
- func (srv *Messaging) CreateMailgunProvider(ProviderId string, Name string, optionalSetters ...CreateMailgunProviderOption) (*models.Provider, error)
- func (srv *Messaging) CreateMsg91Provider(ProviderId string, Name string, optionalSetters ...CreateMsg91ProviderOption) (*models.Provider, error)
- func (srv *Messaging) CreatePush(MessageId string, Title string, Body string, ...) (*models.Message, error)
- func (srv *Messaging) CreateSendgridProvider(ProviderId string, Name string, ...) (*models.Provider, error)
- func (srv *Messaging) CreateSms(MessageId string, Content string, optionalSetters ...CreateSmsOption) (*models.Message, error)
- func (srv *Messaging) CreateSmtpProvider(ProviderId string, Name string, Host string, ...) (*models.Provider, error)
- func (srv *Messaging) CreateSubscriber(TopicId string, SubscriberId string, TargetId string) (*models.Subscriber, error)
- func (srv *Messaging) CreateTelesignProvider(ProviderId string, Name string, ...) (*models.Provider, error)
- func (srv *Messaging) CreateTextmagicProvider(ProviderId string, Name string, ...) (*models.Provider, error)
- func (srv *Messaging) CreateTopic(TopicId string, Name string, optionalSetters ...CreateTopicOption) (*models.Topic, error)
- func (srv *Messaging) CreateTwilioProvider(ProviderId string, Name string, optionalSetters ...CreateTwilioProviderOption) (*models.Provider, error)
- func (srv *Messaging) CreateVonageProvider(ProviderId string, Name string, optionalSetters ...CreateVonageProviderOption) (*models.Provider, error)
- func (srv *Messaging) Delete(MessageId string) (*interface{}, error)
- func (srv *Messaging) DeleteProvider(ProviderId string) (*interface{}, error)
- func (srv *Messaging) DeleteSubscriber(TopicId string, SubscriberId string) (*interface{}, error)
- func (srv *Messaging) DeleteTopic(TopicId string) (*interface{}, error)
- func (srv *Messaging) GetMessage(MessageId string) (*models.Message, error)
- func (srv *Messaging) GetProvider(ProviderId string) (*models.Provider, error)
- func (srv *Messaging) GetSubscriber(TopicId string, SubscriberId string) (*models.Subscriber, error)
- func (srv *Messaging) GetTopic(TopicId string) (*models.Topic, error)
- func (srv *Messaging) ListMessageLogs(MessageId string, optionalSetters ...ListMessageLogsOption) (*models.LogList, error)
- func (srv *Messaging) ListMessages(optionalSetters ...ListMessagesOption) (*models.MessageList, error)
- func (srv *Messaging) ListProviderLogs(ProviderId string, optionalSetters ...ListProviderLogsOption) (*models.LogList, error)
- func (srv *Messaging) ListProviders(optionalSetters ...ListProvidersOption) (*models.ProviderList, error)
- func (srv *Messaging) ListSubscriberLogs(SubscriberId string, optionalSetters ...ListSubscriberLogsOption) (*models.LogList, error)
- func (srv *Messaging) ListSubscribers(TopicId string, optionalSetters ...ListSubscribersOption) (*models.SubscriberList, error)
- func (srv *Messaging) ListTargets(MessageId string, optionalSetters ...ListTargetsOption) (*models.TargetList, error)
- func (srv *Messaging) ListTopicLogs(TopicId string, optionalSetters ...ListTopicLogsOption) (*models.LogList, error)
- func (srv *Messaging) ListTopics(optionalSetters ...ListTopicsOption) (*models.TopicList, error)
- func (srv *Messaging) UpdateApnsProvider(ProviderId string, optionalSetters ...UpdateApnsProviderOption) (*models.Provider, error)
- func (srv *Messaging) UpdateEmail(MessageId string, optionalSetters ...UpdateEmailOption) (*models.Message, error)
- func (srv *Messaging) UpdateFcmProvider(ProviderId string, optionalSetters ...UpdateFcmProviderOption) (*models.Provider, error)
- func (srv *Messaging) UpdateMailgunProvider(ProviderId string, optionalSetters ...UpdateMailgunProviderOption) (*models.Provider, error)
- func (srv *Messaging) UpdateMsg91Provider(ProviderId string, optionalSetters ...UpdateMsg91ProviderOption) (*models.Provider, error)
- func (srv *Messaging) UpdatePush(MessageId string, optionalSetters ...UpdatePushOption) (*models.Message, error)
- func (srv *Messaging) UpdateSendgridProvider(ProviderId string, optionalSetters ...UpdateSendgridProviderOption) (*models.Provider, error)
- func (srv *Messaging) UpdateSms(MessageId string, optionalSetters ...UpdateSmsOption) (*models.Message, error)
- func (srv *Messaging) UpdateSmtpProvider(ProviderId string, optionalSetters ...UpdateSmtpProviderOption) (*models.Provider, error)
- func (srv *Messaging) UpdateTelesignProvider(ProviderId string, optionalSetters ...UpdateTelesignProviderOption) (*models.Provider, error)
- func (srv *Messaging) UpdateTextmagicProvider(ProviderId string, optionalSetters ...UpdateTextmagicProviderOption) (*models.Provider, error)
- func (srv *Messaging) UpdateTopic(TopicId string, optionalSetters ...UpdateTopicOption) (*models.Topic, error)
- func (srv *Messaging) UpdateTwilioProvider(ProviderId string, optionalSetters ...UpdateTwilioProviderOption) (*models.Provider, error)
- func (srv *Messaging) UpdateVonageProvider(ProviderId string, optionalSetters ...UpdateVonageProviderOption) (*models.Provider, error)
- type UpdateApnsProviderOption
- func WithUpdateApnsProviderAuthKey(v string) UpdateApnsProviderOption
- func WithUpdateApnsProviderAuthKeyId(v string) UpdateApnsProviderOption
- func WithUpdateApnsProviderBundleId(v string) UpdateApnsProviderOption
- func WithUpdateApnsProviderEnabled(v bool) UpdateApnsProviderOption
- func WithUpdateApnsProviderName(v string) UpdateApnsProviderOption
- func WithUpdateApnsProviderSandbox(v bool) UpdateApnsProviderOption
- func WithUpdateApnsProviderTeamId(v string) UpdateApnsProviderOption
- type UpdateApnsProviderOptions
- type UpdateEmailOption
- func WithUpdateEmailAttachments(v []interface{}) UpdateEmailOption
- func WithUpdateEmailBcc(v []interface{}) UpdateEmailOption
- func WithUpdateEmailCc(v []interface{}) UpdateEmailOption
- func WithUpdateEmailContent(v string) UpdateEmailOption
- func WithUpdateEmailDraft(v bool) UpdateEmailOption
- func WithUpdateEmailHtml(v bool) UpdateEmailOption
- func WithUpdateEmailScheduledAt(v string) UpdateEmailOption
- func WithUpdateEmailSubject(v string) UpdateEmailOption
- func WithUpdateEmailTargets(v []interface{}) UpdateEmailOption
- func WithUpdateEmailTopics(v []interface{}) UpdateEmailOption
- func WithUpdateEmailUsers(v []interface{}) UpdateEmailOption
- type UpdateEmailOptions
- type UpdateFcmProviderOption
- type UpdateFcmProviderOptions
- type UpdateMailgunProviderOption
- func WithUpdateMailgunProviderApiKey(v string) UpdateMailgunProviderOption
- func WithUpdateMailgunProviderDomain(v string) UpdateMailgunProviderOption
- func WithUpdateMailgunProviderEnabled(v bool) UpdateMailgunProviderOption
- func WithUpdateMailgunProviderFromEmail(v string) UpdateMailgunProviderOption
- func WithUpdateMailgunProviderFromName(v string) UpdateMailgunProviderOption
- func WithUpdateMailgunProviderIsEuRegion(v bool) UpdateMailgunProviderOption
- func WithUpdateMailgunProviderName(v string) UpdateMailgunProviderOption
- func WithUpdateMailgunProviderReplyToEmail(v string) UpdateMailgunProviderOption
- func WithUpdateMailgunProviderReplyToName(v string) UpdateMailgunProviderOption
- type UpdateMailgunProviderOptions
- type UpdateMsg91ProviderOption
- func WithUpdateMsg91ProviderAuthKey(v string) UpdateMsg91ProviderOption
- func WithUpdateMsg91ProviderEnabled(v bool) UpdateMsg91ProviderOption
- func WithUpdateMsg91ProviderName(v string) UpdateMsg91ProviderOption
- func WithUpdateMsg91ProviderSenderId(v string) UpdateMsg91ProviderOption
- func WithUpdateMsg91ProviderTemplateId(v string) UpdateMsg91ProviderOption
- type UpdateMsg91ProviderOptions
- type UpdatePushOption
- func WithUpdatePushAction(v string) UpdatePushOption
- func WithUpdatePushBadge(v int) UpdatePushOption
- func WithUpdatePushBody(v string) UpdatePushOption
- func WithUpdatePushColor(v string) UpdatePushOption
- func WithUpdatePushData(v interface{}) UpdatePushOption
- func WithUpdatePushDraft(v bool) UpdatePushOption
- func WithUpdatePushIcon(v string) UpdatePushOption
- func WithUpdatePushImage(v string) UpdatePushOption
- func WithUpdatePushScheduledAt(v string) UpdatePushOption
- func WithUpdatePushSound(v string) UpdatePushOption
- func WithUpdatePushTag(v string) UpdatePushOption
- func WithUpdatePushTargets(v []interface{}) UpdatePushOption
- func WithUpdatePushTitle(v string) UpdatePushOption
- func WithUpdatePushTopics(v []interface{}) UpdatePushOption
- func WithUpdatePushUsers(v []interface{}) UpdatePushOption
- type UpdatePushOptions
- type UpdateSendgridProviderOption
- func WithUpdateSendgridProviderApiKey(v string) UpdateSendgridProviderOption
- func WithUpdateSendgridProviderEnabled(v bool) UpdateSendgridProviderOption
- func WithUpdateSendgridProviderFromEmail(v string) UpdateSendgridProviderOption
- func WithUpdateSendgridProviderFromName(v string) UpdateSendgridProviderOption
- func WithUpdateSendgridProviderName(v string) UpdateSendgridProviderOption
- func WithUpdateSendgridProviderReplyToEmail(v string) UpdateSendgridProviderOption
- func WithUpdateSendgridProviderReplyToName(v string) UpdateSendgridProviderOption
- type UpdateSendgridProviderOptions
- type UpdateSmsOption
- func WithUpdateSmsContent(v string) UpdateSmsOption
- func WithUpdateSmsDraft(v bool) UpdateSmsOption
- func WithUpdateSmsScheduledAt(v string) UpdateSmsOption
- func WithUpdateSmsTargets(v []interface{}) UpdateSmsOption
- func WithUpdateSmsTopics(v []interface{}) UpdateSmsOption
- func WithUpdateSmsUsers(v []interface{}) UpdateSmsOption
- type UpdateSmsOptions
- type UpdateSmtpProviderOption
- func WithUpdateSmtpProviderAutoTLS(v bool) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderEnabled(v bool) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderEncryption(v string) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderFromEmail(v string) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderFromName(v string) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderHost(v string) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderMailer(v string) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderName(v string) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderPassword(v string) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderPort(v int) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderReplyToEmail(v string) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderReplyToName(v string) UpdateSmtpProviderOption
- func WithUpdateSmtpProviderUsername(v string) UpdateSmtpProviderOption
- type UpdateSmtpProviderOptions
- type UpdateTelesignProviderOption
- func WithUpdateTelesignProviderApiKey(v string) UpdateTelesignProviderOption
- func WithUpdateTelesignProviderCustomerId(v string) UpdateTelesignProviderOption
- func WithUpdateTelesignProviderEnabled(v bool) UpdateTelesignProviderOption
- func WithUpdateTelesignProviderFrom(v string) UpdateTelesignProviderOption
- func WithUpdateTelesignProviderName(v string) UpdateTelesignProviderOption
- type UpdateTelesignProviderOptions
- type UpdateTextmagicProviderOption
- func WithUpdateTextmagicProviderApiKey(v string) UpdateTextmagicProviderOption
- func WithUpdateTextmagicProviderEnabled(v bool) UpdateTextmagicProviderOption
- func WithUpdateTextmagicProviderFrom(v string) UpdateTextmagicProviderOption
- func WithUpdateTextmagicProviderName(v string) UpdateTextmagicProviderOption
- func WithUpdateTextmagicProviderUsername(v string) UpdateTextmagicProviderOption
- type UpdateTextmagicProviderOptions
- type UpdateTopicOption
- type UpdateTopicOptions
- type UpdateTwilioProviderOption
- func WithUpdateTwilioProviderAccountSid(v string) UpdateTwilioProviderOption
- func WithUpdateTwilioProviderAuthToken(v string) UpdateTwilioProviderOption
- func WithUpdateTwilioProviderEnabled(v bool) UpdateTwilioProviderOption
- func WithUpdateTwilioProviderFrom(v string) UpdateTwilioProviderOption
- func WithUpdateTwilioProviderName(v string) UpdateTwilioProviderOption
- type UpdateTwilioProviderOptions
- type UpdateVonageProviderOption
- func WithUpdateVonageProviderApiKey(v string) UpdateVonageProviderOption
- func WithUpdateVonageProviderApiSecret(v string) UpdateVonageProviderOption
- func WithUpdateVonageProviderEnabled(v bool) UpdateVonageProviderOption
- func WithUpdateVonageProviderFrom(v string) UpdateVonageProviderOption
- func WithUpdateVonageProviderName(v string) UpdateVonageProviderOption
- type UpdateVonageProviderOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateApnsProviderOption ¶
type CreateApnsProviderOption func(*CreateApnsProviderOptions)
func WithCreateApnsProviderAuthKey ¶
func WithCreateApnsProviderAuthKey(v string) CreateApnsProviderOption
func WithCreateApnsProviderAuthKeyId ¶
func WithCreateApnsProviderAuthKeyId(v string) CreateApnsProviderOption
func WithCreateApnsProviderBundleId ¶
func WithCreateApnsProviderBundleId(v string) CreateApnsProviderOption
func WithCreateApnsProviderEnabled ¶
func WithCreateApnsProviderEnabled(v bool) CreateApnsProviderOption
func WithCreateApnsProviderSandbox ¶
func WithCreateApnsProviderSandbox(v bool) CreateApnsProviderOption
func WithCreateApnsProviderTeamId ¶
func WithCreateApnsProviderTeamId(v string) CreateApnsProviderOption
type CreateApnsProviderOptions ¶
type CreateApnsProviderOptions struct {
AuthKey string
AuthKeyId string
TeamId string
BundleId string
Sandbox bool
Enabled bool
// contains filtered or unexported fields
}
func (CreateApnsProviderOptions) New ¶
func (options CreateApnsProviderOptions) New() *CreateApnsProviderOptions
type CreateEmailOption ¶
type CreateEmailOption func(*CreateEmailOptions)
func WithCreateEmailAttachments ¶
func WithCreateEmailAttachments(v []interface{}) CreateEmailOption
func WithCreateEmailBcc ¶
func WithCreateEmailBcc(v []interface{}) CreateEmailOption
func WithCreateEmailCc ¶
func WithCreateEmailCc(v []interface{}) CreateEmailOption
func WithCreateEmailDraft ¶
func WithCreateEmailDraft(v bool) CreateEmailOption
func WithCreateEmailHtml ¶
func WithCreateEmailHtml(v bool) CreateEmailOption
func WithCreateEmailScheduledAt ¶
func WithCreateEmailScheduledAt(v string) CreateEmailOption
func WithCreateEmailTargets ¶
func WithCreateEmailTargets(v []interface{}) CreateEmailOption
func WithCreateEmailTopics ¶
func WithCreateEmailTopics(v []interface{}) CreateEmailOption
func WithCreateEmailUsers ¶
func WithCreateEmailUsers(v []interface{}) CreateEmailOption
type CreateEmailOptions ¶
type CreateEmailOptions struct {
Topics []interface{}
Users []interface{}
Targets []interface{}
Cc []interface{}
Bcc []interface{}
Attachments []interface{}
Draft bool
Html bool
ScheduledAt string
// contains filtered or unexported fields
}
func (CreateEmailOptions) New ¶
func (options CreateEmailOptions) New() *CreateEmailOptions
type CreateFcmProviderOption ¶
type CreateFcmProviderOption func(*CreateFcmProviderOptions)
func WithCreateFcmProviderEnabled ¶
func WithCreateFcmProviderEnabled(v bool) CreateFcmProviderOption
func WithCreateFcmProviderServiceAccountJSON ¶
func WithCreateFcmProviderServiceAccountJSON(v interface{}) CreateFcmProviderOption
type CreateFcmProviderOptions ¶
type CreateFcmProviderOptions struct {
ServiceAccountJSON interface{}
Enabled bool
// contains filtered or unexported fields
}
func (CreateFcmProviderOptions) New ¶
func (options CreateFcmProviderOptions) New() *CreateFcmProviderOptions
type CreateMailgunProviderOption ¶
type CreateMailgunProviderOption func(*CreateMailgunProviderOptions)
func WithCreateMailgunProviderApiKey ¶
func WithCreateMailgunProviderApiKey(v string) CreateMailgunProviderOption
func WithCreateMailgunProviderDomain ¶
func WithCreateMailgunProviderDomain(v string) CreateMailgunProviderOption
func WithCreateMailgunProviderEnabled ¶
func WithCreateMailgunProviderEnabled(v bool) CreateMailgunProviderOption
func WithCreateMailgunProviderFromEmail ¶
func WithCreateMailgunProviderFromEmail(v string) CreateMailgunProviderOption
func WithCreateMailgunProviderFromName ¶
func WithCreateMailgunProviderFromName(v string) CreateMailgunProviderOption
func WithCreateMailgunProviderIsEuRegion ¶
func WithCreateMailgunProviderIsEuRegion(v bool) CreateMailgunProviderOption
func WithCreateMailgunProviderReplyToEmail ¶
func WithCreateMailgunProviderReplyToEmail(v string) CreateMailgunProviderOption
func WithCreateMailgunProviderReplyToName ¶
func WithCreateMailgunProviderReplyToName(v string) CreateMailgunProviderOption
type CreateMailgunProviderOptions ¶
type CreateMailgunProviderOptions struct {
ApiKey string
Domain string
IsEuRegion bool
FromName string
FromEmail string
ReplyToName string
ReplyToEmail string
Enabled bool
// contains filtered or unexported fields
}
func (CreateMailgunProviderOptions) New ¶
func (options CreateMailgunProviderOptions) New() *CreateMailgunProviderOptions
type CreateMsg91ProviderOption ¶
type CreateMsg91ProviderOption func(*CreateMsg91ProviderOptions)
func WithCreateMsg91ProviderAuthKey ¶
func WithCreateMsg91ProviderAuthKey(v string) CreateMsg91ProviderOption
func WithCreateMsg91ProviderEnabled ¶
func WithCreateMsg91ProviderEnabled(v bool) CreateMsg91ProviderOption
func WithCreateMsg91ProviderSenderId ¶
func WithCreateMsg91ProviderSenderId(v string) CreateMsg91ProviderOption
func WithCreateMsg91ProviderTemplateId ¶
func WithCreateMsg91ProviderTemplateId(v string) CreateMsg91ProviderOption
type CreateMsg91ProviderOptions ¶
type CreateMsg91ProviderOptions struct {
TemplateId string
SenderId string
AuthKey string
Enabled bool
// contains filtered or unexported fields
}
func (CreateMsg91ProviderOptions) New ¶
func (options CreateMsg91ProviderOptions) New() *CreateMsg91ProviderOptions
type CreatePushOption ¶
type CreatePushOption func(*CreatePushOptions)
func WithCreatePushAction ¶
func WithCreatePushAction(v string) CreatePushOption
func WithCreatePushBadge ¶
func WithCreatePushBadge(v string) CreatePushOption
func WithCreatePushColor ¶
func WithCreatePushColor(v string) CreatePushOption
func WithCreatePushData ¶
func WithCreatePushData(v interface{}) CreatePushOption
func WithCreatePushDraft ¶
func WithCreatePushDraft(v bool) CreatePushOption
func WithCreatePushIcon ¶
func WithCreatePushIcon(v string) CreatePushOption
func WithCreatePushImage ¶
func WithCreatePushImage(v string) CreatePushOption
func WithCreatePushScheduledAt ¶
func WithCreatePushScheduledAt(v string) CreatePushOption
func WithCreatePushSound ¶
func WithCreatePushSound(v string) CreatePushOption
func WithCreatePushTag ¶
func WithCreatePushTag(v string) CreatePushOption
func WithCreatePushTargets ¶
func WithCreatePushTargets(v []interface{}) CreatePushOption
func WithCreatePushTopics ¶
func WithCreatePushTopics(v []interface{}) CreatePushOption
func WithCreatePushUsers ¶
func WithCreatePushUsers(v []interface{}) CreatePushOption
type CreatePushOptions ¶
type CreatePushOptions struct {
Topics []interface{}
Users []interface{}
Targets []interface{}
Data interface{}
Action string
Image string
Icon string
Sound string
Color string
Tag string
Badge string
Draft bool
ScheduledAt string
// contains filtered or unexported fields
}
func (CreatePushOptions) New ¶
func (options CreatePushOptions) New() *CreatePushOptions
type CreateSendgridProviderOption ¶
type CreateSendgridProviderOption func(*CreateSendgridProviderOptions)
func WithCreateSendgridProviderApiKey ¶
func WithCreateSendgridProviderApiKey(v string) CreateSendgridProviderOption
func WithCreateSendgridProviderEnabled ¶
func WithCreateSendgridProviderEnabled(v bool) CreateSendgridProviderOption
func WithCreateSendgridProviderFromEmail ¶
func WithCreateSendgridProviderFromEmail(v string) CreateSendgridProviderOption
func WithCreateSendgridProviderFromName ¶
func WithCreateSendgridProviderFromName(v string) CreateSendgridProviderOption
func WithCreateSendgridProviderReplyToEmail ¶
func WithCreateSendgridProviderReplyToEmail(v string) CreateSendgridProviderOption
func WithCreateSendgridProviderReplyToName ¶
func WithCreateSendgridProviderReplyToName(v string) CreateSendgridProviderOption
type CreateSendgridProviderOptions ¶
type CreateSendgridProviderOptions struct {
ApiKey string
FromName string
FromEmail string
ReplyToName string
ReplyToEmail string
Enabled bool
// contains filtered or unexported fields
}
func (CreateSendgridProviderOptions) New ¶
func (options CreateSendgridProviderOptions) New() *CreateSendgridProviderOptions
type CreateSmsOption ¶
type CreateSmsOption func(*CreateSmsOptions)
func WithCreateSmsDraft ¶
func WithCreateSmsDraft(v bool) CreateSmsOption
func WithCreateSmsScheduledAt ¶
func WithCreateSmsScheduledAt(v string) CreateSmsOption
func WithCreateSmsTargets ¶
func WithCreateSmsTargets(v []interface{}) CreateSmsOption
func WithCreateSmsTopics ¶
func WithCreateSmsTopics(v []interface{}) CreateSmsOption
func WithCreateSmsUsers ¶
func WithCreateSmsUsers(v []interface{}) CreateSmsOption
type CreateSmsOptions ¶
type CreateSmsOptions struct {
Topics []interface{}
Users []interface{}
Targets []interface{}
Draft bool
ScheduledAt string
// contains filtered or unexported fields
}
func (CreateSmsOptions) New ¶
func (options CreateSmsOptions) New() *CreateSmsOptions
type CreateSmtpProviderOption ¶
type CreateSmtpProviderOption func(*CreateSmtpProviderOptions)
func WithCreateSmtpProviderAutoTLS ¶
func WithCreateSmtpProviderAutoTLS(v bool) CreateSmtpProviderOption
func WithCreateSmtpProviderEnabled ¶
func WithCreateSmtpProviderEnabled(v bool) CreateSmtpProviderOption
func WithCreateSmtpProviderEncryption ¶
func WithCreateSmtpProviderEncryption(v string) CreateSmtpProviderOption
func WithCreateSmtpProviderFromEmail ¶
func WithCreateSmtpProviderFromEmail(v string) CreateSmtpProviderOption
func WithCreateSmtpProviderFromName ¶
func WithCreateSmtpProviderFromName(v string) CreateSmtpProviderOption
func WithCreateSmtpProviderMailer ¶
func WithCreateSmtpProviderMailer(v string) CreateSmtpProviderOption
func WithCreateSmtpProviderPassword ¶
func WithCreateSmtpProviderPassword(v string) CreateSmtpProviderOption
func WithCreateSmtpProviderPort ¶
func WithCreateSmtpProviderPort(v int) CreateSmtpProviderOption
func WithCreateSmtpProviderReplyToEmail ¶
func WithCreateSmtpProviderReplyToEmail(v string) CreateSmtpProviderOption
func WithCreateSmtpProviderReplyToName ¶
func WithCreateSmtpProviderReplyToName(v string) CreateSmtpProviderOption
func WithCreateSmtpProviderUsername ¶
func WithCreateSmtpProviderUsername(v string) CreateSmtpProviderOption
type CreateSmtpProviderOptions ¶
type CreateSmtpProviderOptions struct {
Port int
Username string
Password string
Encryption string
AutoTLS bool
Mailer string
FromName string
FromEmail string
ReplyToName string
ReplyToEmail string
Enabled bool
// contains filtered or unexported fields
}
func (CreateSmtpProviderOptions) New ¶
func (options CreateSmtpProviderOptions) New() *CreateSmtpProviderOptions
type CreateTelesignProviderOption ¶
type CreateTelesignProviderOption func(*CreateTelesignProviderOptions)
func WithCreateTelesignProviderApiKey ¶
func WithCreateTelesignProviderApiKey(v string) CreateTelesignProviderOption
func WithCreateTelesignProviderCustomerId ¶
func WithCreateTelesignProviderCustomerId(v string) CreateTelesignProviderOption
func WithCreateTelesignProviderEnabled ¶
func WithCreateTelesignProviderEnabled(v bool) CreateTelesignProviderOption
func WithCreateTelesignProviderFrom ¶
func WithCreateTelesignProviderFrom(v string) CreateTelesignProviderOption
type CreateTelesignProviderOptions ¶
type CreateTelesignProviderOptions struct {
From string
CustomerId string
ApiKey string
Enabled bool
// contains filtered or unexported fields
}
func (CreateTelesignProviderOptions) New ¶
func (options CreateTelesignProviderOptions) New() *CreateTelesignProviderOptions
type CreateTextmagicProviderOption ¶
type CreateTextmagicProviderOption func(*CreateTextmagicProviderOptions)
func WithCreateTextmagicProviderApiKey ¶
func WithCreateTextmagicProviderApiKey(v string) CreateTextmagicProviderOption
func WithCreateTextmagicProviderEnabled ¶
func WithCreateTextmagicProviderEnabled(v bool) CreateTextmagicProviderOption
func WithCreateTextmagicProviderFrom ¶
func WithCreateTextmagicProviderFrom(v string) CreateTextmagicProviderOption
func WithCreateTextmagicProviderUsername ¶
func WithCreateTextmagicProviderUsername(v string) CreateTextmagicProviderOption
type CreateTextmagicProviderOptions ¶
type CreateTextmagicProviderOptions struct {
From string
Username string
ApiKey string
Enabled bool
// contains filtered or unexported fields
}
func (CreateTextmagicProviderOptions) New ¶
func (options CreateTextmagicProviderOptions) New() *CreateTextmagicProviderOptions
type CreateTopicOption ¶
type CreateTopicOption func(*CreateTopicOptions)
func WithCreateTopicSubscribe ¶
func WithCreateTopicSubscribe(v []interface{}) CreateTopicOption
type CreateTopicOptions ¶
type CreateTopicOptions struct {
Subscribe []interface{}
// contains filtered or unexported fields
}
func (CreateTopicOptions) New ¶
func (options CreateTopicOptions) New() *CreateTopicOptions
type CreateTwilioProviderOption ¶
type CreateTwilioProviderOption func(*CreateTwilioProviderOptions)
func WithCreateTwilioProviderAccountSid ¶
func WithCreateTwilioProviderAccountSid(v string) CreateTwilioProviderOption
func WithCreateTwilioProviderAuthToken ¶
func WithCreateTwilioProviderAuthToken(v string) CreateTwilioProviderOption
func WithCreateTwilioProviderEnabled ¶
func WithCreateTwilioProviderEnabled(v bool) CreateTwilioProviderOption
func WithCreateTwilioProviderFrom ¶
func WithCreateTwilioProviderFrom(v string) CreateTwilioProviderOption
type CreateTwilioProviderOptions ¶
type CreateTwilioProviderOptions struct {
From string
AccountSid string
AuthToken string
Enabled bool
// contains filtered or unexported fields
}
func (CreateTwilioProviderOptions) New ¶
func (options CreateTwilioProviderOptions) New() *CreateTwilioProviderOptions
type CreateVonageProviderOption ¶
type CreateVonageProviderOption func(*CreateVonageProviderOptions)
func WithCreateVonageProviderApiKey ¶
func WithCreateVonageProviderApiKey(v string) CreateVonageProviderOption
func WithCreateVonageProviderApiSecret ¶
func WithCreateVonageProviderApiSecret(v string) CreateVonageProviderOption
func WithCreateVonageProviderEnabled ¶
func WithCreateVonageProviderEnabled(v bool) CreateVonageProviderOption
func WithCreateVonageProviderFrom ¶
func WithCreateVonageProviderFrom(v string) CreateVonageProviderOption
type CreateVonageProviderOptions ¶
type CreateVonageProviderOptions struct {
From string
ApiKey string
ApiSecret string
Enabled bool
// contains filtered or unexported fields
}
func (CreateVonageProviderOptions) New ¶
func (options CreateVonageProviderOptions) New() *CreateVonageProviderOptions
type ListMessageLogsOption ¶
type ListMessageLogsOption func(*ListMessageLogsOptions)
func WithListMessageLogsQueries ¶
func WithListMessageLogsQueries(v []interface{}) ListMessageLogsOption
type ListMessageLogsOptions ¶
type ListMessageLogsOptions struct {
Queries []interface{}
// contains filtered or unexported fields
}
func (ListMessageLogsOptions) New ¶
func (options ListMessageLogsOptions) New() *ListMessageLogsOptions
type ListMessagesOption ¶
type ListMessagesOption func(*ListMessagesOptions)
func WithListMessagesQueries ¶
func WithListMessagesQueries(v []interface{}) ListMessagesOption
func WithListMessagesSearch ¶
func WithListMessagesSearch(v string) ListMessagesOption
type ListMessagesOptions ¶
type ListMessagesOptions struct {
Queries []interface{}
Search string
// contains filtered or unexported fields
}
func (ListMessagesOptions) New ¶
func (options ListMessagesOptions) New() *ListMessagesOptions
type ListProviderLogsOption ¶
type ListProviderLogsOption func(*ListProviderLogsOptions)
func WithListProviderLogsQueries ¶
func WithListProviderLogsQueries(v []interface{}) ListProviderLogsOption
type ListProviderLogsOptions ¶
type ListProviderLogsOptions struct {
Queries []interface{}
// contains filtered or unexported fields
}
func (ListProviderLogsOptions) New ¶
func (options ListProviderLogsOptions) New() *ListProviderLogsOptions
type ListProvidersOption ¶
type ListProvidersOption func(*ListProvidersOptions)
func WithListProvidersQueries ¶
func WithListProvidersQueries(v []interface{}) ListProvidersOption
func WithListProvidersSearch ¶
func WithListProvidersSearch(v string) ListProvidersOption
type ListProvidersOptions ¶
type ListProvidersOptions struct {
Queries []interface{}
Search string
// contains filtered or unexported fields
}
func (ListProvidersOptions) New ¶
func (options ListProvidersOptions) New() *ListProvidersOptions
type ListSubscriberLogsOption ¶
type ListSubscriberLogsOption func(*ListSubscriberLogsOptions)
func WithListSubscriberLogsQueries ¶
func WithListSubscriberLogsQueries(v []interface{}) ListSubscriberLogsOption
type ListSubscriberLogsOptions ¶
type ListSubscriberLogsOptions struct {
Queries []interface{}
// contains filtered or unexported fields
}
func (ListSubscriberLogsOptions) New ¶
func (options ListSubscriberLogsOptions) New() *ListSubscriberLogsOptions
type ListSubscribersOption ¶
type ListSubscribersOption func(*ListSubscribersOptions)
func WithListSubscribersQueries ¶
func WithListSubscribersQueries(v []interface{}) ListSubscribersOption
func WithListSubscribersSearch ¶
func WithListSubscribersSearch(v string) ListSubscribersOption
type ListSubscribersOptions ¶
type ListSubscribersOptions struct {
Queries []interface{}
Search string
// contains filtered or unexported fields
}
func (ListSubscribersOptions) New ¶
func (options ListSubscribersOptions) New() *ListSubscribersOptions
type ListTargetsOption ¶
type ListTargetsOption func(*ListTargetsOptions)
func WithListTargetsQueries ¶
func WithListTargetsQueries(v []interface{}) ListTargetsOption
type ListTargetsOptions ¶
type ListTargetsOptions struct {
Queries []interface{}
// contains filtered or unexported fields
}
func (ListTargetsOptions) New ¶
func (options ListTargetsOptions) New() *ListTargetsOptions
type ListTopicLogsOption ¶
type ListTopicLogsOption func(*ListTopicLogsOptions)
func WithListTopicLogsQueries ¶
func WithListTopicLogsQueries(v []interface{}) ListTopicLogsOption
type ListTopicLogsOptions ¶
type ListTopicLogsOptions struct {
Queries []interface{}
// contains filtered or unexported fields
}
func (ListTopicLogsOptions) New ¶
func (options ListTopicLogsOptions) New() *ListTopicLogsOptions
type ListTopicsOption ¶
type ListTopicsOption func(*ListTopicsOptions)
func WithListTopicsQueries ¶
func WithListTopicsQueries(v []interface{}) ListTopicsOption
func WithListTopicsSearch ¶
func WithListTopicsSearch(v string) ListTopicsOption
type ListTopicsOptions ¶
type ListTopicsOptions struct {
Queries []interface{}
Search string
// contains filtered or unexported fields
}
func (ListTopicsOptions) New ¶
func (options ListTopicsOptions) New() *ListTopicsOptions
type Messaging ¶
type Messaging struct {
// contains filtered or unexported fields
}
Messaging service
func NewMessaging ¶
func (*Messaging) CreateApnsProvider ¶
func (srv *Messaging) CreateApnsProvider(ProviderId string, Name string, optionalSetters ...CreateApnsProviderOption) (*models.Provider, error)
CreateApnsProvider create a new Apple Push Notification service provider.
func (*Messaging) CreateEmail ¶
func (srv *Messaging) CreateEmail(MessageId string, Subject string, Content string, optionalSetters ...CreateEmailOption) (*models.Message, error)
CreateEmail create a new email message.
func (*Messaging) CreateFcmProvider ¶
func (srv *Messaging) CreateFcmProvider(ProviderId string, Name string, optionalSetters ...CreateFcmProviderOption) (*models.Provider, error)
CreateFcmProvider create a new Firebase Cloud Messaging provider.
func (*Messaging) CreateMailgunProvider ¶
func (srv *Messaging) CreateMailgunProvider(ProviderId string, Name string, optionalSetters ...CreateMailgunProviderOption) (*models.Provider, error)
CreateMailgunProvider create a new Mailgun provider.
func (*Messaging) CreateMsg91Provider ¶
func (srv *Messaging) CreateMsg91Provider(ProviderId string, Name string, optionalSetters ...CreateMsg91ProviderOption) (*models.Provider, error)
CreateMsg91Provider create a new MSG91 provider.
func (*Messaging) CreatePush ¶
func (srv *Messaging) CreatePush(MessageId string, Title string, Body string, optionalSetters ...CreatePushOption) (*models.Message, error)
CreatePush create a new push notification.
func (*Messaging) CreateSendgridProvider ¶
func (srv *Messaging) CreateSendgridProvider(ProviderId string, Name string, optionalSetters ...CreateSendgridProviderOption) (*models.Provider, error)
CreateSendgridProvider create a new Sendgrid provider.
func (*Messaging) CreateSms ¶
func (srv *Messaging) CreateSms(MessageId string, Content string, optionalSetters ...CreateSmsOption) (*models.Message, error)
CreateSms create a new SMS message.
func (*Messaging) CreateSmtpProvider ¶
func (srv *Messaging) CreateSmtpProvider(ProviderId string, Name string, Host string, optionalSetters ...CreateSmtpProviderOption) (*models.Provider, error)
CreateSmtpProvider create a new SMTP provider.
func (*Messaging) CreateSubscriber ¶
func (srv *Messaging) CreateSubscriber(TopicId string, SubscriberId string, TargetId string) (*models.Subscriber, error)
CreateSubscriber create a new subscriber.
func (*Messaging) CreateTelesignProvider ¶
func (srv *Messaging) CreateTelesignProvider(ProviderId string, Name string, optionalSetters ...CreateTelesignProviderOption) (*models.Provider, error)
CreateTelesignProvider create a new Telesign provider.
func (*Messaging) CreateTextmagicProvider ¶
func (srv *Messaging) CreateTextmagicProvider(ProviderId string, Name string, optionalSetters ...CreateTextmagicProviderOption) (*models.Provider, error)
CreateTextmagicProvider create a new Textmagic provider.
func (*Messaging) CreateTopic ¶
func (srv *Messaging) CreateTopic(TopicId string, Name string, optionalSetters ...CreateTopicOption) (*models.Topic, error)
CreateTopic create a new topic.
func (*Messaging) CreateTwilioProvider ¶
func (srv *Messaging) CreateTwilioProvider(ProviderId string, Name string, optionalSetters ...CreateTwilioProviderOption) (*models.Provider, error)
CreateTwilioProvider create a new Twilio provider.
func (*Messaging) CreateVonageProvider ¶
func (srv *Messaging) CreateVonageProvider(ProviderId string, Name string, optionalSetters ...CreateVonageProviderOption) (*models.Provider, error)
CreateVonageProvider create a new Vonage provider.
func (*Messaging) Delete ¶
Delete delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.
func (*Messaging) DeleteProvider ¶
DeleteProvider delete a provider by its unique ID.
func (*Messaging) DeleteSubscriber ¶
DeleteSubscriber delete a subscriber by its unique ID.
func (*Messaging) DeleteTopic ¶
DeleteTopic delete a topic by its unique ID.
func (*Messaging) GetMessage ¶
GetMessage get a message by its unique ID.
func (*Messaging) GetProvider ¶
GetProvider get a provider by its unique ID.
func (*Messaging) GetSubscriber ¶
func (srv *Messaging) GetSubscriber(TopicId string, SubscriberId string) (*models.Subscriber, error)
GetSubscriber get a subscriber by its unique ID.
func (*Messaging) ListMessageLogs ¶
func (srv *Messaging) ListMessageLogs(MessageId string, optionalSetters ...ListMessageLogsOption) (*models.LogList, error)
ListMessageLogs get the message activity logs listed by its unique ID.
func (*Messaging) ListMessages ¶
func (srv *Messaging) ListMessages(optionalSetters ...ListMessagesOption) (*models.MessageList, error)
ListMessages get a list of all messages from the current Appwrite project.
func (*Messaging) ListProviderLogs ¶
func (srv *Messaging) ListProviderLogs(ProviderId string, optionalSetters ...ListProviderLogsOption) (*models.LogList, error)
ListProviderLogs get the provider activity logs listed by its unique ID.
func (*Messaging) ListProviders ¶
func (srv *Messaging) ListProviders(optionalSetters ...ListProvidersOption) (*models.ProviderList, error)
ListProviders get a list of all providers from the current Appwrite project.
func (*Messaging) ListSubscriberLogs ¶
func (srv *Messaging) ListSubscriberLogs(SubscriberId string, optionalSetters ...ListSubscriberLogsOption) (*models.LogList, error)
ListSubscriberLogs get the subscriber activity logs listed by its unique ID.
func (*Messaging) ListSubscribers ¶
func (srv *Messaging) ListSubscribers(TopicId string, optionalSetters ...ListSubscribersOption) (*models.SubscriberList, error)
ListSubscribers get a list of all subscribers from the current Appwrite project.
func (*Messaging) ListTargets ¶
func (srv *Messaging) ListTargets(MessageId string, optionalSetters ...ListTargetsOption) (*models.TargetList, error)
ListTargets get a list of the targets associated with a message.
func (*Messaging) ListTopicLogs ¶
func (srv *Messaging) ListTopicLogs(TopicId string, optionalSetters ...ListTopicLogsOption) (*models.LogList, error)
ListTopicLogs get the topic activity logs listed by its unique ID.
func (*Messaging) ListTopics ¶
func (srv *Messaging) ListTopics(optionalSetters ...ListTopicsOption) (*models.TopicList, error)
ListTopics get a list of all topics from the current Appwrite project.
func (*Messaging) UpdateApnsProvider ¶
func (srv *Messaging) UpdateApnsProvider(ProviderId string, optionalSetters ...UpdateApnsProviderOption) (*models.Provider, error)
UpdateApnsProvider update a Apple Push Notification service provider by its unique ID.
func (*Messaging) UpdateEmail ¶
func (srv *Messaging) UpdateEmail(MessageId string, optionalSetters ...UpdateEmailOption) (*models.Message, error)
UpdateEmail update an email message by its unique ID.
func (*Messaging) UpdateFcmProvider ¶
func (srv *Messaging) UpdateFcmProvider(ProviderId string, optionalSetters ...UpdateFcmProviderOption) (*models.Provider, error)
UpdateFcmProvider update a Firebase Cloud Messaging provider by its unique ID.
func (*Messaging) UpdateMailgunProvider ¶
func (srv *Messaging) UpdateMailgunProvider(ProviderId string, optionalSetters ...UpdateMailgunProviderOption) (*models.Provider, error)
UpdateMailgunProvider update a Mailgun provider by its unique ID.
func (*Messaging) UpdateMsg91Provider ¶
func (srv *Messaging) UpdateMsg91Provider(ProviderId string, optionalSetters ...UpdateMsg91ProviderOption) (*models.Provider, error)
UpdateMsg91Provider update a MSG91 provider by its unique ID.
func (*Messaging) UpdatePush ¶
func (srv *Messaging) UpdatePush(MessageId string, optionalSetters ...UpdatePushOption) (*models.Message, error)
UpdatePush update a push notification by its unique ID.
func (*Messaging) UpdateSendgridProvider ¶
func (srv *Messaging) UpdateSendgridProvider(ProviderId string, optionalSetters ...UpdateSendgridProviderOption) (*models.Provider, error)
UpdateSendgridProvider update a Sendgrid provider by its unique ID.
func (*Messaging) UpdateSms ¶
func (srv *Messaging) UpdateSms(MessageId string, optionalSetters ...UpdateSmsOption) (*models.Message, error)
UpdateSms update an email message by its unique ID.
func (*Messaging) UpdateSmtpProvider ¶
func (srv *Messaging) UpdateSmtpProvider(ProviderId string, optionalSetters ...UpdateSmtpProviderOption) (*models.Provider, error)
UpdateSmtpProvider update a SMTP provider by its unique ID.
func (*Messaging) UpdateTelesignProvider ¶
func (srv *Messaging) UpdateTelesignProvider(ProviderId string, optionalSetters ...UpdateTelesignProviderOption) (*models.Provider, error)
UpdateTelesignProvider update a Telesign provider by its unique ID.
func (*Messaging) UpdateTextmagicProvider ¶
func (srv *Messaging) UpdateTextmagicProvider(ProviderId string, optionalSetters ...UpdateTextmagicProviderOption) (*models.Provider, error)
UpdateTextmagicProvider update a Textmagic provider by its unique ID.
func (*Messaging) UpdateTopic ¶
func (srv *Messaging) UpdateTopic(TopicId string, optionalSetters ...UpdateTopicOption) (*models.Topic, error)
UpdateTopic update a topic by its unique ID.
func (*Messaging) UpdateTwilioProvider ¶
func (srv *Messaging) UpdateTwilioProvider(ProviderId string, optionalSetters ...UpdateTwilioProviderOption) (*models.Provider, error)
UpdateTwilioProvider update a Twilio provider by its unique ID.
func (*Messaging) UpdateVonageProvider ¶
func (srv *Messaging) UpdateVonageProvider(ProviderId string, optionalSetters ...UpdateVonageProviderOption) (*models.Provider, error)
UpdateVonageProvider update a Vonage provider by its unique ID.
type UpdateApnsProviderOption ¶
type UpdateApnsProviderOption func(*UpdateApnsProviderOptions)
func WithUpdateApnsProviderAuthKey ¶
func WithUpdateApnsProviderAuthKey(v string) UpdateApnsProviderOption
func WithUpdateApnsProviderAuthKeyId ¶
func WithUpdateApnsProviderAuthKeyId(v string) UpdateApnsProviderOption
func WithUpdateApnsProviderBundleId ¶
func WithUpdateApnsProviderBundleId(v string) UpdateApnsProviderOption
func WithUpdateApnsProviderEnabled ¶
func WithUpdateApnsProviderEnabled(v bool) UpdateApnsProviderOption
func WithUpdateApnsProviderName ¶
func WithUpdateApnsProviderName(v string) UpdateApnsProviderOption
func WithUpdateApnsProviderSandbox ¶
func WithUpdateApnsProviderSandbox(v bool) UpdateApnsProviderOption
func WithUpdateApnsProviderTeamId ¶
func WithUpdateApnsProviderTeamId(v string) UpdateApnsProviderOption
type UpdateApnsProviderOptions ¶
type UpdateApnsProviderOptions struct {
Name string
Enabled bool
AuthKey string
AuthKeyId string
TeamId string
BundleId string
Sandbox bool
// contains filtered or unexported fields
}
func (UpdateApnsProviderOptions) New ¶
func (options UpdateApnsProviderOptions) New() *UpdateApnsProviderOptions
type UpdateEmailOption ¶
type UpdateEmailOption func(*UpdateEmailOptions)
func WithUpdateEmailAttachments ¶
func WithUpdateEmailAttachments(v []interface{}) UpdateEmailOption
func WithUpdateEmailBcc ¶
func WithUpdateEmailBcc(v []interface{}) UpdateEmailOption
func WithUpdateEmailCc ¶
func WithUpdateEmailCc(v []interface{}) UpdateEmailOption
func WithUpdateEmailContent ¶
func WithUpdateEmailContent(v string) UpdateEmailOption
func WithUpdateEmailDraft ¶
func WithUpdateEmailDraft(v bool) UpdateEmailOption
func WithUpdateEmailHtml ¶
func WithUpdateEmailHtml(v bool) UpdateEmailOption
func WithUpdateEmailScheduledAt ¶
func WithUpdateEmailScheduledAt(v string) UpdateEmailOption
func WithUpdateEmailSubject ¶
func WithUpdateEmailSubject(v string) UpdateEmailOption
func WithUpdateEmailTargets ¶
func WithUpdateEmailTargets(v []interface{}) UpdateEmailOption
func WithUpdateEmailTopics ¶
func WithUpdateEmailTopics(v []interface{}) UpdateEmailOption
func WithUpdateEmailUsers ¶
func WithUpdateEmailUsers(v []interface{}) UpdateEmailOption
type UpdateEmailOptions ¶
type UpdateEmailOptions struct {
Topics []interface{}
Users []interface{}
Targets []interface{}
Subject string
Content string
Draft bool
Html bool
Cc []interface{}
Bcc []interface{}
ScheduledAt string
Attachments []interface{}
// contains filtered or unexported fields
}
func (UpdateEmailOptions) New ¶
func (options UpdateEmailOptions) New() *UpdateEmailOptions
type UpdateFcmProviderOption ¶
type UpdateFcmProviderOption func(*UpdateFcmProviderOptions)
func WithUpdateFcmProviderEnabled ¶
func WithUpdateFcmProviderEnabled(v bool) UpdateFcmProviderOption
func WithUpdateFcmProviderName ¶
func WithUpdateFcmProviderName(v string) UpdateFcmProviderOption
func WithUpdateFcmProviderServiceAccountJSON ¶
func WithUpdateFcmProviderServiceAccountJSON(v interface{}) UpdateFcmProviderOption
type UpdateFcmProviderOptions ¶
type UpdateFcmProviderOptions struct {
Name string
Enabled bool
ServiceAccountJSON interface{}
// contains filtered or unexported fields
}
func (UpdateFcmProviderOptions) New ¶
func (options UpdateFcmProviderOptions) New() *UpdateFcmProviderOptions
type UpdateMailgunProviderOption ¶
type UpdateMailgunProviderOption func(*UpdateMailgunProviderOptions)
func WithUpdateMailgunProviderApiKey ¶
func WithUpdateMailgunProviderApiKey(v string) UpdateMailgunProviderOption
func WithUpdateMailgunProviderDomain ¶
func WithUpdateMailgunProviderDomain(v string) UpdateMailgunProviderOption
func WithUpdateMailgunProviderEnabled ¶
func WithUpdateMailgunProviderEnabled(v bool) UpdateMailgunProviderOption
func WithUpdateMailgunProviderFromEmail ¶
func WithUpdateMailgunProviderFromEmail(v string) UpdateMailgunProviderOption
func WithUpdateMailgunProviderFromName ¶
func WithUpdateMailgunProviderFromName(v string) UpdateMailgunProviderOption
func WithUpdateMailgunProviderIsEuRegion ¶
func WithUpdateMailgunProviderIsEuRegion(v bool) UpdateMailgunProviderOption
func WithUpdateMailgunProviderName ¶
func WithUpdateMailgunProviderName(v string) UpdateMailgunProviderOption
func WithUpdateMailgunProviderReplyToEmail ¶
func WithUpdateMailgunProviderReplyToEmail(v string) UpdateMailgunProviderOption
func WithUpdateMailgunProviderReplyToName ¶
func WithUpdateMailgunProviderReplyToName(v string) UpdateMailgunProviderOption
type UpdateMailgunProviderOptions ¶
type UpdateMailgunProviderOptions struct {
Name string
ApiKey string
Domain string
IsEuRegion bool
Enabled bool
FromName string
FromEmail string
ReplyToName string
ReplyToEmail string
// contains filtered or unexported fields
}
func (UpdateMailgunProviderOptions) New ¶
func (options UpdateMailgunProviderOptions) New() *UpdateMailgunProviderOptions
type UpdateMsg91ProviderOption ¶
type UpdateMsg91ProviderOption func(*UpdateMsg91ProviderOptions)
func WithUpdateMsg91ProviderAuthKey ¶
func WithUpdateMsg91ProviderAuthKey(v string) UpdateMsg91ProviderOption
func WithUpdateMsg91ProviderEnabled ¶
func WithUpdateMsg91ProviderEnabled(v bool) UpdateMsg91ProviderOption
func WithUpdateMsg91ProviderName ¶
func WithUpdateMsg91ProviderName(v string) UpdateMsg91ProviderOption
func WithUpdateMsg91ProviderSenderId ¶
func WithUpdateMsg91ProviderSenderId(v string) UpdateMsg91ProviderOption
func WithUpdateMsg91ProviderTemplateId ¶
func WithUpdateMsg91ProviderTemplateId(v string) UpdateMsg91ProviderOption
type UpdateMsg91ProviderOptions ¶
type UpdateMsg91ProviderOptions struct {
Name string
Enabled bool
TemplateId string
SenderId string
AuthKey string
// contains filtered or unexported fields
}
func (UpdateMsg91ProviderOptions) New ¶
func (options UpdateMsg91ProviderOptions) New() *UpdateMsg91ProviderOptions
type UpdatePushOption ¶
type UpdatePushOption func(*UpdatePushOptions)
func WithUpdatePushAction ¶
func WithUpdatePushAction(v string) UpdatePushOption
func WithUpdatePushBadge ¶
func WithUpdatePushBadge(v int) UpdatePushOption
func WithUpdatePushBody ¶
func WithUpdatePushBody(v string) UpdatePushOption
func WithUpdatePushColor ¶
func WithUpdatePushColor(v string) UpdatePushOption
func WithUpdatePushData ¶
func WithUpdatePushData(v interface{}) UpdatePushOption
func WithUpdatePushDraft ¶
func WithUpdatePushDraft(v bool) UpdatePushOption
func WithUpdatePushIcon ¶
func WithUpdatePushIcon(v string) UpdatePushOption
func WithUpdatePushImage ¶
func WithUpdatePushImage(v string) UpdatePushOption
func WithUpdatePushScheduledAt ¶
func WithUpdatePushScheduledAt(v string) UpdatePushOption
func WithUpdatePushSound ¶
func WithUpdatePushSound(v string) UpdatePushOption
func WithUpdatePushTag ¶
func WithUpdatePushTag(v string) UpdatePushOption
func WithUpdatePushTargets ¶
func WithUpdatePushTargets(v []interface{}) UpdatePushOption
func WithUpdatePushTitle ¶
func WithUpdatePushTitle(v string) UpdatePushOption
func WithUpdatePushTopics ¶
func WithUpdatePushTopics(v []interface{}) UpdatePushOption
func WithUpdatePushUsers ¶
func WithUpdatePushUsers(v []interface{}) UpdatePushOption
type UpdatePushOptions ¶
type UpdatePushOptions struct {
Topics []interface{}
Users []interface{}
Targets []interface{}
Title string
Body string
Data interface{}
Action string
Image string
Icon string
Sound string
Color string
Tag string
Badge int
Draft bool
ScheduledAt string
// contains filtered or unexported fields
}
func (UpdatePushOptions) New ¶
func (options UpdatePushOptions) New() *UpdatePushOptions
type UpdateSendgridProviderOption ¶
type UpdateSendgridProviderOption func(*UpdateSendgridProviderOptions)
func WithUpdateSendgridProviderApiKey ¶
func WithUpdateSendgridProviderApiKey(v string) UpdateSendgridProviderOption
func WithUpdateSendgridProviderEnabled ¶
func WithUpdateSendgridProviderEnabled(v bool) UpdateSendgridProviderOption
func WithUpdateSendgridProviderFromEmail ¶
func WithUpdateSendgridProviderFromEmail(v string) UpdateSendgridProviderOption
func WithUpdateSendgridProviderFromName ¶
func WithUpdateSendgridProviderFromName(v string) UpdateSendgridProviderOption
func WithUpdateSendgridProviderName ¶
func WithUpdateSendgridProviderName(v string) UpdateSendgridProviderOption
func WithUpdateSendgridProviderReplyToEmail ¶
func WithUpdateSendgridProviderReplyToEmail(v string) UpdateSendgridProviderOption
func WithUpdateSendgridProviderReplyToName ¶
func WithUpdateSendgridProviderReplyToName(v string) UpdateSendgridProviderOption
type UpdateSendgridProviderOptions ¶
type UpdateSendgridProviderOptions struct {
Name string
Enabled bool
ApiKey string
FromName string
FromEmail string
ReplyToName string
ReplyToEmail string
// contains filtered or unexported fields
}
func (UpdateSendgridProviderOptions) New ¶
func (options UpdateSendgridProviderOptions) New() *UpdateSendgridProviderOptions
type UpdateSmsOption ¶
type UpdateSmsOption func(*UpdateSmsOptions)
func WithUpdateSmsContent ¶
func WithUpdateSmsContent(v string) UpdateSmsOption
func WithUpdateSmsDraft ¶
func WithUpdateSmsDraft(v bool) UpdateSmsOption
func WithUpdateSmsScheduledAt ¶
func WithUpdateSmsScheduledAt(v string) UpdateSmsOption
func WithUpdateSmsTargets ¶
func WithUpdateSmsTargets(v []interface{}) UpdateSmsOption
func WithUpdateSmsTopics ¶
func WithUpdateSmsTopics(v []interface{}) UpdateSmsOption
func WithUpdateSmsUsers ¶
func WithUpdateSmsUsers(v []interface{}) UpdateSmsOption
type UpdateSmsOptions ¶
type UpdateSmsOptions struct {
Topics []interface{}
Users []interface{}
Targets []interface{}
Content string
Draft bool
ScheduledAt string
// contains filtered or unexported fields
}
func (UpdateSmsOptions) New ¶
func (options UpdateSmsOptions) New() *UpdateSmsOptions
type UpdateSmtpProviderOption ¶
type UpdateSmtpProviderOption func(*UpdateSmtpProviderOptions)
func WithUpdateSmtpProviderAutoTLS ¶
func WithUpdateSmtpProviderAutoTLS(v bool) UpdateSmtpProviderOption
func WithUpdateSmtpProviderEnabled ¶
func WithUpdateSmtpProviderEnabled(v bool) UpdateSmtpProviderOption
func WithUpdateSmtpProviderEncryption ¶
func WithUpdateSmtpProviderEncryption(v string) UpdateSmtpProviderOption
func WithUpdateSmtpProviderFromEmail ¶
func WithUpdateSmtpProviderFromEmail(v string) UpdateSmtpProviderOption
func WithUpdateSmtpProviderFromName ¶
func WithUpdateSmtpProviderFromName(v string) UpdateSmtpProviderOption
func WithUpdateSmtpProviderHost ¶
func WithUpdateSmtpProviderHost(v string) UpdateSmtpProviderOption
func WithUpdateSmtpProviderMailer ¶
func WithUpdateSmtpProviderMailer(v string) UpdateSmtpProviderOption
func WithUpdateSmtpProviderName ¶
func WithUpdateSmtpProviderName(v string) UpdateSmtpProviderOption
func WithUpdateSmtpProviderPassword ¶
func WithUpdateSmtpProviderPassword(v string) UpdateSmtpProviderOption
func WithUpdateSmtpProviderPort ¶
func WithUpdateSmtpProviderPort(v int) UpdateSmtpProviderOption
func WithUpdateSmtpProviderReplyToEmail ¶
func WithUpdateSmtpProviderReplyToEmail(v string) UpdateSmtpProviderOption
func WithUpdateSmtpProviderReplyToName ¶
func WithUpdateSmtpProviderReplyToName(v string) UpdateSmtpProviderOption
func WithUpdateSmtpProviderUsername ¶
func WithUpdateSmtpProviderUsername(v string) UpdateSmtpProviderOption
type UpdateSmtpProviderOptions ¶
type UpdateSmtpProviderOptions struct {
Name string
Host string
Port int
Username string
Password string
Encryption string
AutoTLS bool
Mailer string
FromName string
FromEmail string
ReplyToName string
ReplyToEmail string
Enabled bool
// contains filtered or unexported fields
}
func (UpdateSmtpProviderOptions) New ¶
func (options UpdateSmtpProviderOptions) New() *UpdateSmtpProviderOptions
type UpdateTelesignProviderOption ¶
type UpdateTelesignProviderOption func(*UpdateTelesignProviderOptions)
func WithUpdateTelesignProviderApiKey ¶
func WithUpdateTelesignProviderApiKey(v string) UpdateTelesignProviderOption
func WithUpdateTelesignProviderCustomerId ¶
func WithUpdateTelesignProviderCustomerId(v string) UpdateTelesignProviderOption
func WithUpdateTelesignProviderEnabled ¶
func WithUpdateTelesignProviderEnabled(v bool) UpdateTelesignProviderOption
func WithUpdateTelesignProviderFrom ¶
func WithUpdateTelesignProviderFrom(v string) UpdateTelesignProviderOption
func WithUpdateTelesignProviderName ¶
func WithUpdateTelesignProviderName(v string) UpdateTelesignProviderOption
type UpdateTelesignProviderOptions ¶
type UpdateTelesignProviderOptions struct {
Name string
Enabled bool
CustomerId string
ApiKey string
From string
// contains filtered or unexported fields
}
func (UpdateTelesignProviderOptions) New ¶
func (options UpdateTelesignProviderOptions) New() *UpdateTelesignProviderOptions
type UpdateTextmagicProviderOption ¶
type UpdateTextmagicProviderOption func(*UpdateTextmagicProviderOptions)
func WithUpdateTextmagicProviderApiKey ¶
func WithUpdateTextmagicProviderApiKey(v string) UpdateTextmagicProviderOption
func WithUpdateTextmagicProviderEnabled ¶
func WithUpdateTextmagicProviderEnabled(v bool) UpdateTextmagicProviderOption
func WithUpdateTextmagicProviderFrom ¶
func WithUpdateTextmagicProviderFrom(v string) UpdateTextmagicProviderOption
func WithUpdateTextmagicProviderName ¶
func WithUpdateTextmagicProviderName(v string) UpdateTextmagicProviderOption
func WithUpdateTextmagicProviderUsername ¶
func WithUpdateTextmagicProviderUsername(v string) UpdateTextmagicProviderOption
type UpdateTextmagicProviderOptions ¶
type UpdateTextmagicProviderOptions struct {
Name string
Enabled bool
Username string
ApiKey string
From string
// contains filtered or unexported fields
}
func (UpdateTextmagicProviderOptions) New ¶
func (options UpdateTextmagicProviderOptions) New() *UpdateTextmagicProviderOptions
type UpdateTopicOption ¶
type UpdateTopicOption func(*UpdateTopicOptions)
func WithUpdateTopicName ¶
func WithUpdateTopicName(v string) UpdateTopicOption
func WithUpdateTopicSubscribe ¶
func WithUpdateTopicSubscribe(v []interface{}) UpdateTopicOption
type UpdateTopicOptions ¶
type UpdateTopicOptions struct {
Name string
Subscribe []interface{}
// contains filtered or unexported fields
}
func (UpdateTopicOptions) New ¶
func (options UpdateTopicOptions) New() *UpdateTopicOptions
type UpdateTwilioProviderOption ¶
type UpdateTwilioProviderOption func(*UpdateTwilioProviderOptions)
func WithUpdateTwilioProviderAccountSid ¶
func WithUpdateTwilioProviderAccountSid(v string) UpdateTwilioProviderOption
func WithUpdateTwilioProviderAuthToken ¶
func WithUpdateTwilioProviderAuthToken(v string) UpdateTwilioProviderOption
func WithUpdateTwilioProviderEnabled ¶
func WithUpdateTwilioProviderEnabled(v bool) UpdateTwilioProviderOption
func WithUpdateTwilioProviderFrom ¶
func WithUpdateTwilioProviderFrom(v string) UpdateTwilioProviderOption
func WithUpdateTwilioProviderName ¶
func WithUpdateTwilioProviderName(v string) UpdateTwilioProviderOption
type UpdateTwilioProviderOptions ¶
type UpdateTwilioProviderOptions struct {
Name string
Enabled bool
AccountSid string
AuthToken string
From string
// contains filtered or unexported fields
}
func (UpdateTwilioProviderOptions) New ¶
func (options UpdateTwilioProviderOptions) New() *UpdateTwilioProviderOptions
type UpdateVonageProviderOption ¶
type UpdateVonageProviderOption func(*UpdateVonageProviderOptions)
func WithUpdateVonageProviderApiKey ¶
func WithUpdateVonageProviderApiKey(v string) UpdateVonageProviderOption
func WithUpdateVonageProviderApiSecret ¶
func WithUpdateVonageProviderApiSecret(v string) UpdateVonageProviderOption
func WithUpdateVonageProviderEnabled ¶
func WithUpdateVonageProviderEnabled(v bool) UpdateVonageProviderOption
func WithUpdateVonageProviderFrom ¶
func WithUpdateVonageProviderFrom(v string) UpdateVonageProviderOption
func WithUpdateVonageProviderName ¶
func WithUpdateVonageProviderName(v string) UpdateVonageProviderOption
type UpdateVonageProviderOptions ¶
type UpdateVonageProviderOptions struct {
Name string
Enabled bool
ApiKey string
ApiSecret string
From string
// contains filtered or unexported fields
}
func (UpdateVonageProviderOptions) New ¶
func (options UpdateVonageProviderOptions) New() *UpdateVonageProviderOptions