service

package
v0.0.0-...-844d4e4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntegrationService

type IntegrationService struct {
	TwilioClient   *internal.Client
	OutreachClient *outreach.Client
	Config         config.Config
}

IntegrationService handles the integration between Twilio and Outreach

func NewIntegrationService

func NewIntegrationService(cfg config.Config) *IntegrationService

NewIntegrationService creates a new instance of the IntegrationService

func (*IntegrationService) CreateOTP

CreateOTP exposes twilio service to send OTP message to Whatsapp or SMS

func (*IntegrationService) CreateSMS

CreateSMS exposes twilio service to send SMS

func (*IntegrationService) CreateWhatsapp

CreateWhatsapp exposes twilio service to send Whatsapp message

func (*IntegrationService) Run

func (s *IntegrationService) Run() error

Run starts the integration process

func (*IntegrationService) ValidateOTP

ValidateOTP exposes twilio service to validate a OTP message

Jump to

Keyboard shortcuts

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