app

package
v0.0.0-...-b8bafe8 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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