mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 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 SMSClientMock

type SMSClientMock struct {
	MockSendBulkSMSFn func(ctx context.Context, message string, recipients []string) (*silcomms.BulkSMSResponse, error)
}

SMSClientMock mocks the SILComms client library implementations

func NewSMSClientMock

func NewSMSClientMock() *SMSClientMock

NewSMSClientMock initializes our client mocks

func (SMSClientMock) SendBulkSMS

func (sc SMSClientMock) SendBulkSMS(ctx context.Context, message string, recipients []string) (*silcomms.BulkSMSResponse, error)

SendBulkSMS mocks the implementation of sending bulk SMS

type SMSServiceMock

type SMSServiceMock struct {
	MockSendSMSFn func(ctx context.Context, message string, recipients []string) (*silcomms.BulkSMSResponse, error)
}

SMSServiceMock mocks the SILComms SMS service mock methods

func NewSMSServiceMock

func NewSMSServiceMock() *SMSServiceMock

NewSMSServiceMock initializes the mock service

func (*SMSServiceMock) SendSMS

func (m *SMSServiceMock) SendSMS(ctx context.Context, message string, recipients []string) (*silcomms.BulkSMSResponse, error)

SendSMS mocks the SILComms sending SMS service method

Jump to

Keyboard shortcuts

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