onboarding

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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