app

package
v0.0.0-...-91e7ea6 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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