sms

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImplSMS

type ImplSMS struct {
	// contains filtered or unexported fields
}

ImplSMS is the SMS service implementation

func NewSMS

func NewSMS(infrastructure infrastructure.Interactor) *ImplSMS

NewSMS initializes an SMS service instance

func (*ImplSMS) Send

func (s *ImplSMS) Send(
	ctx context.Context,
	to, message string,
	from enumutils.SenderID,
) (*silcomms.BulkSMSResponse, error)

Send is a method used to send to a single recipient

func (*ImplSMS) SendToMany

func (s *ImplSMS) SendToMany(
	ctx context.Context,
	message string,
	to []string,
	from enumutils.SenderID,
) (*silcomms.BulkSMSResponse, error)

SendToMany sends sms to many recipients

type UsecaseSMS

type UsecaseSMS interface {
	SendToMany(
		ctx context.Context,
		to []string,
		message string,
	) (*silcomms.BulkSMSResponse, error)
	Send(
		ctx context.Context,
		to, message string,
	) (*silcomms.BulkSMSResponse, error)
}

UsecaseSMS defines SMS service usecases interface

Jump to

Keyboard shortcuts

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