mock

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 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
}

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 ...

func (*FakeServiceTwilio) Room

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

Room ...

func (*FakeServiceTwilio) SaveTwilioVideoCallbackStatus

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

SaveTwilioVideoCallbackStatus ..

func (*FakeServiceTwilio) SendSMS

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

SendSMS ...

func (*FakeServiceTwilio) TwilioAccessToken

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

TwilioAccessToken ...

Jump to

Keyboard shortcuts

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