Documentation ¶
Index ¶
- type AuthGenerator
- type Data
- type Event
- type Repository
- type TaskGenerator
- type UserInteractor
- func (u *UserInteractor) CreateTask(req userdto.CreateTaskRequest) (userdto.CreateTaskResponse, error)
- func (u *UserInteractor) Login(req userdto.LoginRequest) (userdto.LoginResponse, error)
- func (u *UserInteractor) Profile(req userdto.ProfileRequest) (userdto.ProfileResponse, error)
- func (u *UserInteractor) RefreshToken(req userdto.RefreshTokenRequest) (userdto.RefreshTokenResponse, error)
- func (u *UserInteractor) Register(req userdto.RegisterRequest) (userdto.RegisterResponse, error)
- func (u *UserInteractor) Tasks(req userdto.TasksRequest) (userdto.TasksResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthGenerator ¶
type AuthGenerator interface { CreateAccessToken(dto userauthservicedto.CreateTokenRequest) (userauthservicedto.CreateTokenResponse, error) CreateRefreshToken(dto userauthservicedto.CreateTokenRequest) (userauthservicedto.CreateTokenResponse, error) ExtractIDFromRefreshToken(dto userauthservicedto.ExtractIDFromTokenRequest) (userauthservicedto.ExtractIDFromTokenResponse, error) }
type Repository ¶
type TaskGenerator ¶
type TaskGenerator interface { Create(dto usertaskservicedto.CreateTaskRequest) (usertaskservicedto.CreateTaskResponse, error) TasksUser(dto usertaskservicedto.TasksUserRequest) (usertaskservicedto.TasksUserResponse, error) }
type UserInteractor ¶
type UserInteractor struct {
// contains filtered or unexported fields
}
func New ¶
func New( config *configs.Config, redisClient redis.DB, authInteractor AuthGenerator, taskInteractor TaskGenerator, event Event, repository Repository, ) *UserInteractor
func (*UserInteractor) CreateTask ¶
func (u *UserInteractor) CreateTask(req userdto.CreateTaskRequest) (userdto.CreateTaskResponse, error)
func (*UserInteractor) Login ¶
func (u *UserInteractor) Login(req userdto.LoginRequest) (userdto.LoginResponse, error)
func (*UserInteractor) Profile ¶
func (u *UserInteractor) Profile(req userdto.ProfileRequest) (userdto.ProfileResponse, error)
func (*UserInteractor) RefreshToken ¶
func (u *UserInteractor) RefreshToken(req userdto.RefreshTokenRequest) (userdto.RefreshTokenResponse, error)
func (*UserInteractor) Register ¶
func (u *UserInteractor) Register(req userdto.RegisterRequest) (userdto.RegisterResponse, error)
func (*UserInteractor) Tasks ¶
func (u *UserInteractor) Tasks(req userdto.TasksRequest) (userdto.TasksResponse, error)
Click to show internal directories.
Click to hide internal directories.