Documentation ¶
Index ¶
- type AuthServerImpl
- type ServiceSMS
- type ServiceSMSImpl
- func (s ServiceSMSImpl) Send(ctx context.Context, to, message string) (*silcomms.BulkSMSResponse, error)
- func (s ServiceSMSImpl) SendSMS(ctx context.Context, to []string, message string) (*silcomms.BulkSMSResponse, error)
- func (s ServiceSMSImpl) SendToMany(ctx context.Context, to []string, message string) (*silcomms.BulkSMSResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServerImpl ¶ added in v0.0.40
type AuthServerImpl interface { LoginUser(ctx context.Context, input *authutils.LoginUserPayload) (*authutils.OAUTHResponse, error) RefreshToken(ctx context.Context, refreshToken string) (*authutils.OAUTHResponse, error) }
AuthServerImpl defines the methods provided by the auth server library
type ServiceSMS ¶
type ServiceSMS interface { SendToMany( ctx context.Context, to []string, message string, ) (*silcomms.BulkSMSResponse, error) Send( ctx context.Context, to, message string, ) (*silcomms.BulkSMSResponse, error) }
ServiceSMS defines the interactions with sms service
type ServiceSMSImpl ¶
ServiceSMSImpl defines a sms service struct
func NewService ¶
func NewService( repository database.Repository, pubsub messaging.NotificationService, authService AuthServerImpl, ) *ServiceSMSImpl
NewService returns a new service
func (ServiceSMSImpl) Send ¶
func (s ServiceSMSImpl) Send( ctx context.Context, to, message string, ) (*silcomms.BulkSMSResponse, error)
Send is a method used to send to a single recipient
func (ServiceSMSImpl) SendSMS ¶
func (s ServiceSMSImpl) SendSMS( ctx context.Context, to []string, message string, ) (*silcomms.BulkSMSResponse, error)
SendSMS is a method used to send SMS
func (ServiceSMSImpl) SendToMany ¶
func (s ServiceSMSImpl) SendToMany( ctx context.Context, to []string, message string, ) (*silcomms.BulkSMSResponse, error)
SendToMany is a utility method to send to many recipients at the same time
Click to show internal directories.
Click to hide internal directories.