Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UseCase ¶
type UseCase interface { // SignUp creates a new user in user repository SignUp(ctx context.Context, user *user.User) error GetUser(ctx context.Context, email string) (*user.User, error) }
func NewService ¶
func NewService(userRepo user.Repository) UseCase
NewService returns a pointer to auth service, and implements the auth use case
Click to show internal directories.
Click to hide internal directories.