Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRepository ¶
type AuthRepository interface { RegisterUser(ctx context.Context, userData entities.RegisterUserDTO) (userID uint64, err error) CreateRefreshToken( ctx context.Context, userID uint64, refreshToken string, ttl time.Duration, ) (refreshTokenID uint64, err error) GetRefreshTokenByUserID(ctx context.Context, userID uint64) (*entities.RefreshToken, error) ExpireRefreshToken(ctx context.Context, refreshToken string) error }
type AuthService ¶
type AuthService interface { AuthRepository }
type Controller ¶
type Controller interface { Run() Stop() }
type UseCases ¶
type UseCases interface { GetUserByID(ctx context.Context, id uint64) (*entities.User, error) GetAllUsers(ctx context.Context) ([]entities.User, error) RegisterUser(ctx context.Context, userData entities.RegisterUserDTO) (userID uint64, err error) LoginUser(ctx context.Context, userData entities.LoginUserDTO) (*entities.TokensDTO, error) GetMe(ctx context.Context, accessToken string) (*entities.User, error) RefreshTokens(ctx context.Context, refreshToken string) (*entities.TokensDTO, error) }
type UsersRepository ¶
type UsersService ¶
type UsersService interface { UsersRepository }
Click to show internal directories.
Click to hide internal directories.