messaging

package
v0.0.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 NewMessaging(clt client.Client) *Messaging

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

func (srv *Messaging) Delete(MessageId string) (*interface{}, error)

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

func (srv *Messaging) DeleteProvider(ProviderId string) (*interface{}, error)

DeleteProvider delete a provider by its unique ID.

func (*Messaging) DeleteSubscriber

func (srv *Messaging) DeleteSubscriber(TopicId string, SubscriberId string) (*interface{}, error)

DeleteSubscriber delete a subscriber by its unique ID.

func (*Messaging) DeleteTopic

func (srv *Messaging) DeleteTopic(TopicId string) (*interface{}, error)

DeleteTopic delete a topic by its unique ID.

func (*Messaging) GetMessage

func (srv *Messaging) GetMessage(MessageId string) (*models.Message, error)

GetMessage get a message by its unique ID.

func (*Messaging) GetProvider

func (srv *Messaging) GetProvider(ProviderId string) (*models.Provider, error)

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) GetTopic

func (srv *Messaging) GetTopic(TopicId string) (*models.Topic, error)

GetTopic get a topic 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

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

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

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

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

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

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

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

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

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

Jump to

Keyboard shortcuts

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