sms

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 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,
) (*dto.SendMessageResponse, 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,
) (*dto.SendMessageResponse, error)

SendToMany sends sms to many recipients

type UsecaseSMS

type UsecaseSMS interface {
	SendToMany(
		ctx context.Context,
		message string,
		to []string,
		from enumutils.SenderID,
	) (*dto.SendMessageResponse, error)
	Send(
		ctx context.Context,
		to, message string,
		from enumutils.SenderID,
	) (*dto.SendMessageResponse, 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