Documentation ¶
Index ¶
- type FakeServiceTwilio
- func (f *FakeServiceTwilio) MakeTwilioRequest(method string, urlPath string, content url.Values, target interface{}) error
- func (f *FakeServiceTwilio) MakeWhatsappTwilioRequest(ctx context.Context, method string, urlPath string, content url.Values, ...) error
- func (f *FakeServiceTwilio) PhoneNumberVerificationCode(ctx context.Context, to string, code string, marketingMessage string) (bool, error)
- func (f *FakeServiceTwilio) Room(ctx context.Context) (*dto.Room, error)
- func (f *FakeServiceTwilio) SaveTwilioCallbackResponse(ctx context.Context, data dto.Message) error
- func (f *FakeServiceTwilio) SaveTwilioVideoCallbackStatus(ctx context.Context, data dto.CallbackData) error
- func (f *FakeServiceTwilio) SendSMS(ctx context.Context, to string, msg string) error
- func (f *FakeServiceTwilio) TemporaryPIN(ctx context.Context, to string, message string) (bool, error)
- func (f *FakeServiceTwilio) TwilioAccessToken(ctx context.Context) (*dto.AccessToken, error)
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) 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) 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
Click to show internal directories.
Click to hide internal directories.