messaging

package
Version: v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceMessaging

type ServiceMessaging interface {
	FetchSMSClient() *interserviceclient.InterServiceClient
	FetchTwilioClient() *interserviceclient.InterServiceClient
	SendSMS(ctx context.Context, phoneNumbers []string, message string) error
}

ServiceMessaging represents messaging via sms and/or twilio

func NewServiceMessagingImpl

func NewServiceMessagingImpl(baseExt extension.BaseExtension) ServiceMessaging

NewServiceMessagingImpl returns new initialized instance of ServiceOnboardingImpl

type ServiceMessagingImpl

type ServiceMessagingImpl struct {
	SMS    *interserviceclient.InterServiceClient
	Twilio *interserviceclient.InterServiceClient
}

ServiceMessagingImpl represents our messaging struct

func (*ServiceMessagingImpl) FetchSMSClient

FetchSMSClient returns engagement's service SMS ISC

func (*ServiceMessagingImpl) FetchTwilioClient

FetchTwilioClient returns twilio's service SMS ISC

func (*ServiceMessagingImpl) SendSMS

func (s *ServiceMessagingImpl) SendSMS(ctx context.Context, phoneNumbers []string, message string) error

SendSMS does the actual delvery of messages to the provided phone numbers

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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