Documentation ¶
Index ¶
- type FakeServiceOnboarding
- func (f *FakeServiceOnboarding) GetDeviceTokens(ctx context.Context, uid onboarding.UserUIDs) (map[string][]string, error)
- func (f *FakeServiceOnboarding) GetEmailAddresses(ctx context.Context, uids onboarding.UserUIDs) (map[string][]string, error)
- func (f *FakeServiceOnboarding) GetPhoneNumbers(ctx context.Context, uids onboarding.UserUIDs) (map[string][]string, error)
- func (f *FakeServiceOnboarding) GetUserProfile(ctx context.Context, uid string) (*profileutils.UserProfile, error)
- func (f *FakeServiceOnboarding) GetUserProfileByPhoneOrEmail(ctx context.Context, payload *dto.RetrieveUserProfileInput) (*profileutils.UserProfile, error)
- func (f *FakeServiceOnboarding) IsOptedOut(ctx context.Context, phoneNumber string) (bool, error)
- func (f *FakeServiceOnboarding) PhonesWithoutOptOut(ctx context.Context, phones []string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeServiceOnboarding ¶
type FakeServiceOnboarding struct { GetEmailAddressesFn func(ctx context.Context, uids onboarding.UserUIDs) (map[string][]string, error) GetPhoneNumbersFn func(ctx context.Context, uids onboarding.UserUIDs) (map[string][]string, error) GetDeviceTokensFn func(ctx context.Context, uid onboarding.UserUIDs) (map[string][]string, error) GetUserProfileFn func(ctx context.Context, uid string) (*profileutils.UserProfile, error) IsOptedOutFn func(ctx context.Context, phoneNumber string) (bool, error) PhonesWithoutOptOutFn func(ctx context.Context, phones []string) ([]string, error) GetUserProfileByPhoneOrEmailFn func(ctx context.Context, payload *dto.RetrieveUserProfileInput) (*profileutils.UserProfile, error) }
FakeServiceOnboarding is an "onboarding" service mock
func (*FakeServiceOnboarding) GetDeviceTokens ¶
func (f *FakeServiceOnboarding) GetDeviceTokens(ctx context.Context, uid onboarding.UserUIDs) (map[string][]string, error)
GetDeviceTokens ...
func (*FakeServiceOnboarding) GetEmailAddresses ¶
func (f *FakeServiceOnboarding) GetEmailAddresses(ctx context.Context, uids onboarding.UserUIDs) (map[string][]string, error)
GetEmailAddresses ...
func (*FakeServiceOnboarding) GetPhoneNumbers ¶
func (f *FakeServiceOnboarding) GetPhoneNumbers(ctx context.Context, uids onboarding.UserUIDs) (map[string][]string, error)
GetPhoneNumbers ...
func (*FakeServiceOnboarding) GetUserProfile ¶
func (f *FakeServiceOnboarding) GetUserProfile(ctx context.Context, uid string) (*profileutils.UserProfile, error)
GetUserProfile ...
func (*FakeServiceOnboarding) GetUserProfileByPhoneOrEmail ¶
func (f *FakeServiceOnboarding) GetUserProfileByPhoneOrEmail(ctx context.Context, payload *dto.RetrieveUserProfileInput) (*profileutils.UserProfile, error)
GetUserProfileByPhoneOrEmail ...
func (*FakeServiceOnboarding) IsOptedOut ¶
IsOptedOut ..
func (*FakeServiceOnboarding) PhonesWithoutOptOut ¶
func (f *FakeServiceOnboarding) PhonesWithoutOptOut(ctx context.Context, phones []string) ([]string, error)
PhonesWithoutOptOut ..
Click to show internal directories.
Click to hide internal directories.