Documentation ¶ Index ¶ type UseCase func New(r repo.UserRepo, j *jwt.Manager) *UseCase func (uc *UseCase) GetUser(ctx context.Context, userID string) (entity.User, error) func (uc *UseCase) Login(ctx context.Context, email, password string) (string, error) func (uc *UseCase) Register(ctx context.Context, username, email, password string) (entity.User, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type UseCase ¶ type UseCase struct { // contains filtered or unexported fields } UseCase -. func New ¶ func New(r repo.UserRepo, j *jwt.Manager) *UseCase New -. func (*UseCase) GetUser ¶ func (uc *UseCase) GetUser(ctx context.Context, userID string) (entity.User, error) GetUser -. func (*UseCase) Login ¶ func (uc *UseCase) Login(ctx context.Context, email, password string) (string, error) Login -. func (*UseCase) Register ¶ func (uc *UseCase) Register(ctx context.Context, username, email, password string) (entity.User, error) Register -. Source Files ¶ View all Source files user.go Click to show internal directories. Click to hide internal directories.