Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers interface { Register() echo.HandlerFunc Login() echo.HandlerFunc Logout() echo.HandlerFunc Update() echo.HandlerFunc Delete() echo.HandlerFunc GetUserByID() echo.HandlerFunc FindByName() echo.HandlerFunc GetUsers() echo.HandlerFunc GetMe() echo.HandlerFunc GetCSRFToken() echo.HandlerFunc }
Auth HTTP Handlers interface
type RedisRepository ¶
type RedisRepository interface { GetByIDCtx(ctx context.Context, key string) (*models.User, error) SetUserCtx(ctx context.Context, key string, seconds int, user *models.User) error DeleteUserCtx(ctx context.Context, key string) error }
Auth Redis repository interface
type Repository ¶
type Repository interface { Register(ctx context.Context, user *models.User) (*models.User, error) Update(ctx context.Context, user *models.User) (*models.User, error) Delete(ctx context.Context, userID uuid.UUID) error GetByID(ctx context.Context, userID uuid.UUID) (*models.User, error) FindByName(ctx context.Context, name string, query *utils.PaginationQuery) (*models.UsersList, error) FindByEmail(ctx context.Context, user *models.User) (*models.User, error) GetUsers(ctx context.Context, pq *utils.PaginationQuery) (*models.UsersList, error) }
Auth repository interface
type UseCase ¶
type UseCase interface { Register(ctx context.Context, user *models.User) (*models.UserWithToken, error) Login(ctx context.Context, user *models.User) (*models.UserWithToken, error) Update(ctx context.Context, user *models.User) (*models.User, error) Delete(ctx context.Context, userID uuid.UUID) error GetByID(ctx context.Context, userID uuid.UUID) (*models.User, error) FindByName(ctx context.Context, name string, query *utils.PaginationQuery) (*models.UsersList, error) GetUsers(ctx context.Context, pq *utils.PaginationQuery) (*models.UsersList, error) }
Auth repository interface
Directories ¶
Path | Synopsis |
---|---|
delivery
|
|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.