user

package
v0.0.0-...-dab1d25 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Register(*fiber.Ctx) error
	Login(*fiber.Ctx) error
	Logout(*fiber.Ctx) error
	Delete(*fiber.Ctx) error
	Me(*fiber.Ctx) error
}

type RedisRepository

type RedisRepository interface {
	GetUser(ctx context.Context, key string) (*entity.User, error)
	SetUser(ctx context.Context, key string, user *entity.User) error
	DeleteUser(ctx context.Context, key string) error
}

type UserRepository

type UserRepository interface {
	Register(ctx context.Context, user *entity.User) (*entity.User, error)
	Update(ctx context.Context, user *entity.User) (*entity.User, error)
	Delete(ctx context.Context, userId string) error
	FindByEmail(ctx context.Context, email string) (*entity.User, error)
	GetById(ctx context.Context, userId string) (*entity.User, error)
}

type UserUseCase

type UserUseCase interface {
	Register(ctx context.Context, request *model.RegisterUserRequest) (*model.UserResponse, error)
	Login(ctx context.Context, request *model.LoginUserRequest) (*model.UserResponse, error)
	Delete(ctx context.Context, request *model.DeleteUserRequest) error
	GetById(ctx context.Context, userId string) (*model.UserResponse, error)
}

Directories

Path Synopsis
Package user_mock is a generated GoMock package.
Package user_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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