mock

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeServiceTwilio

type FakeServiceTwilio struct {
	MakeTwilioRequestFn func(
		method string,
		urlPath string,
		content url.Values,
		target interface{},
	) error

	RoomFn func(ctx context.Context) (*dto.Room, error)

	TwilioAccessTokenFn func(ctx context.Context) (*dto.AccessToken, error)

	SendSMSFn func(ctx context.Context, to string, msg string) error

	SaveTwilioVideoCallbackStatusFn func(
		ctx context.Context,
		data dto.CallbackData,
	) error

	PhoneNumberVerificationCodeFn func(
		ctx context.Context,
		to string,
		code string,
		marketingMessage string,
	) (bool, error)

	SaveTwilioCallbackResponseFn func(
		ctx context.Context,
		data dto.Message,
	) error

	TemporaryPINFn func(
		ctx context.Context,
		to string,
		message string,
	) (bool, error)
	MakeWhatsappTwilioRequestFn func(
		ctx context.Context,
		method string,
		urlPath string,
		content url.Values,
		target interface{},
	) error
}

FakeServiceTwilio defines the interaction with the twilio service

func (*FakeServiceTwilio) MakeTwilioRequest

func (f *FakeServiceTwilio) MakeTwilioRequest(
	method string,
	urlPath string,
	content url.Values,
	target interface{},
) error

MakeTwilioRequest is a mock of the MakeTwilioRequest method

func (*FakeServiceTwilio) MakeWhatsappTwilioRequest added in v0.0.25

func (f *FakeServiceTwilio) MakeWhatsappTwilioRequest(
	ctx context.Context,
	method string,
	urlPath string,
	content url.Values,
	target interface{},
) error

MakeWhatsappTwilioRequest is a mock of the MakeWhatsappTwilioRequest method

func (*FakeServiceTwilio) PhoneNumberVerificationCode added in v0.0.23

func (f *FakeServiceTwilio) PhoneNumberVerificationCode(
	ctx context.Context,
	to string,
	code string,
	marketingMessage string,
) (bool, error)

PhoneNumberVerificationCode is a mock of the PhoneNumberVerificationCode method

func (*FakeServiceTwilio) Room

func (f *FakeServiceTwilio) Room(ctx context.Context) (*dto.Room, error)

Room is a mock of the Room method

func (*FakeServiceTwilio) SaveTwilioCallbackResponse added in v0.0.23

func (f *FakeServiceTwilio) SaveTwilioCallbackResponse(
	ctx context.Context,
	data dto.Message,
) error

SaveTwilioCallbackResponse is a mock of the SaveTwilioCallbackResponse method

func (*FakeServiceTwilio) SaveTwilioVideoCallbackStatus

func (f *FakeServiceTwilio) SaveTwilioVideoCallbackStatus(
	ctx context.Context,
	data dto.CallbackData,
) error

SaveTwilioVideoCallbackStatus is a mock of the SendSMS method

func (*FakeServiceTwilio) SendSMS

func (f *FakeServiceTwilio) SendSMS(ctx context.Context, to string, msg string) error

SendSMS is a mock of the SendSMS method

func (*FakeServiceTwilio) TemporaryPIN added in v0.0.23

func (f *FakeServiceTwilio) TemporaryPIN(
	ctx context.Context,
	to string,
	message string,
) (bool, error)

TemporaryPIN is a mock of the TemporaryPIN method

func (*FakeServiceTwilio) TwilioAccessToken

func (f *FakeServiceTwilio) TwilioAccessToken(ctx context.Context) (*dto.AccessToken, error)

TwilioAccessToken is a mock of the TwilioAccessToken method

Jump to

Keyboard shortcuts

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