Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserNotFound = e.NewStatusError(errors.New("user not found"), http.StatusNotFound) ErrUserExists = e.NewStatusError(errors.New("user already exists"), http.StatusBadRequest) )
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService interface { GetByEmail(ctx context.Context, req *v1.GetUserByEmailRequest) (*v1.GetUserResponse, error) Create(ctx context.Context, user *v1.CreateUserRequest) error Update(ctx context.Context, user *v1.UpdateUserRequest) error }
func NewUserService ¶
func NewUserService(userRepository repository.UserRepository) UserService
Click to show internal directories.
Click to hide internal directories.