Documentation ¶
Index ¶
- type ImplOnboarding
- func (f *ImplOnboarding) GetDeviceTokens(ctx context.Context, uid onboarding.UserUIDs) (map[string][]string, error)
- func (f *ImplOnboarding) GetEmailAddresses(ctx context.Context, uids onboarding.UserUIDs) (map[string][]string, error)
- func (f *ImplOnboarding) GetPhoneNumbers(ctx context.Context, uids onboarding.UserUIDs) (map[string][]string, error)
- func (f *ImplOnboarding) GetUserProfile(ctx context.Context, uid string) (*profileutils.UserProfile, error)
- func (f *ImplOnboarding) GetUserProfileByPhoneOrEmail(ctx context.Context, payload *dto.RetrieveUserProfileInput) (*profileutils.UserProfile, error)
- type UsecaseOnboarding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImplOnboarding ¶
type ImplOnboarding struct {
// contains filtered or unexported fields
}
ImplOnboarding is the Onboarding service implementation
func NewOnboarding ¶
func NewOnboarding(infrastructure infrastructure.Interactor) *ImplOnboarding
NewOnboarding initializes a Onboarding service instance
func (*ImplOnboarding) GetDeviceTokens ¶
func (f *ImplOnboarding) GetDeviceTokens( ctx context.Context, uid onboarding.UserUIDs, ) (map[string][]string, error)
GetDeviceTokens gets the specified users' FCM push tokens from the staging / testing / prod profile service
func (*ImplOnboarding) GetEmailAddresses ¶
func (f *ImplOnboarding) GetEmailAddresses( ctx context.Context, uids onboarding.UserUIDs, ) (map[string][]string, error)
GetEmailAddresses gets the specified users' email addresses from the staging / testing / prod profile service
func (*ImplOnboarding) GetPhoneNumbers ¶
func (f *ImplOnboarding) GetPhoneNumbers( ctx context.Context, uids onboarding.UserUIDs, ) (map[string][]string, error)
GetPhoneNumbers gets the specified users' phone numbers from the staging / testing / prod profile service
func (*ImplOnboarding) GetUserProfile ¶
func (f *ImplOnboarding) GetUserProfile( ctx context.Context, uid string, ) (*profileutils.UserProfile, error)
GetUserProfile gets the specified users' profile from the onboarding service
func (*ImplOnboarding) GetUserProfileByPhoneOrEmail ¶
func (f *ImplOnboarding) GetUserProfileByPhoneOrEmail( ctx context.Context, payload *dto.RetrieveUserProfileInput, ) (*profileutils.UserProfile, error)
GetUserProfileByPhoneOrEmail gets the specified users' profile from the onboarding service
type UsecaseOnboarding ¶
type UsecaseOnboarding interface { GetEmailAddresses( ctx context.Context, uids onboarding.UserUIDs, ) (map[string][]string, error) GetPhoneNumbers( ctx context.Context, uids onboarding.UserUIDs, ) (map[string][]string, error) GetDeviceTokens( ctx context.Context, uid onboarding.UserUIDs, ) (map[string][]string, error) GetUserProfile(ctx context.Context, uid string) (*profileutils.UserProfile, error) GetUserProfileByPhoneOrEmail(ctx context.Context, payload *dto.RetrieveUserProfileInput) (*profileutils.UserProfile, error) }
UsecaseOnboarding defines Onboarding service usecases interface