MCPcopy Create free account

hub / github.com/AleksK1NG/Go-Clean-Architecture-REST-API / functions

Functions480 in github.com/AleksK1NG/Go-Clean-Architecture-REST-API

MethodDelete
Delete mocks base method
internal/auth/mock/pg_repository_mock.go:70
MethodDelete
Delete indicates an expected call of Delete
internal/auth/mock/pg_repository_mock.go:78
MethodDelete
Delete mocks base method
internal/auth/mock/usecase_mock.go:85
MethodDelete
Delete indicates an expected call of Delete
internal/auth/mock/usecase_mock.go:93
MethodDelete
Delete new user
internal/auth/usecase/usecase.go:96
MethodDelete
(ctx context.Context, commentID uuid.UUID)
internal/comments/pg_repository.go:17
MethodDelete
(ctx context.Context, commentID uuid.UUID)
internal/comments/usecase.go:17
MethodDelete
()
internal/comments/delivery.go:9
MethodDelete
Delete @Summary Delete comment @Description delete comment @Tags Comments @Accept json @Produce json @Param id path int true "comment_id" @Success 2
internal/comments/delivery/http/hanldlers.go:123
MethodDelete
Delete comment
internal/comments/repository/pg_repository.go:60
MethodDelete
Delete mocks base method
internal/comments/mock/pg_repository_mock.go:70
MethodDelete
Delete indicates an expected call of Delete
internal/comments/mock/pg_repository_mock.go:78
MethodDelete
Delete mocks base method
internal/comments/mock/usecase_mock.go:70
MethodDelete
Delete indicates an expected call of Delete
internal/comments/mock/usecase_mock.go:78
MethodDelete
Delete comment
internal/comments/usecase/usecase.go:61
MethodDelete
(ctx context.Context, newsID uuid.UUID)
internal/news/pg_repository.go:18
MethodDelete
()
internal/news/delivery.go:10
MethodDelete
Delete godoc @Summary Delete news @Description Delete by id news handler @Tags News @Accept json @Produce json @Param id path int true "news_id" @Succ
internal/news/delivery/http/handlers.go:135
MethodDelete
Delete news by id
internal/news/repository/pg_repository.go:82
MethodDelete
Delete mocks base method
internal/news/mock/pg_repository_mock.go:85
MethodDelete
Delete indicates an expected call of Delete
internal/news/mock/pg_repository_mock.go:93
MethodDelete
Delete mocks base method
internal/news/mock/usecase_mock.go:85
MethodDelete
Delete indicates an expected call of Delete
internal/news/mock/usecase_mock.go:93
MethodDelete
Delete news
internal/news/usecase/usecase.go:114
MethodDeleteByID
(ctx context.Context, sessionID string)
internal/session/redis_repository.go:14
MethodDeleteByID
Delete session by id
internal/session/repository/redis_repository.go:71
MethodDeleteByID
DeleteByID mocks base method
internal/session/mock/redis_repository_mock.go:68
MethodDeleteByID
DeleteByID indicates an expected call of DeleteByID
internal/session/mock/redis_repository_mock.go:76
MethodDeleteByID
DeleteByID mocks base method
internal/session/mock/usecase_mock.go:68
MethodDeleteByID
DeleteByID indicates an expected call of DeleteByID
internal/session/mock/usecase_mock.go:76
MethodDeleteByID
Delete session by id
internal/session/usecase/usecase.go:33
MethodDeleteNewsCtx
Delete new item from cache
internal/news/repository/redis_repository.go:59
MethodDeleteNewsCtx
DeleteNewsCtx mocks base method
internal/news/mock/redis_repository_mock.go:67
MethodDeleteNewsCtx
DeleteNewsCtx indicates an expected call of DeleteNewsCtx
internal/news/mock/redis_repository_mock.go:75
MethodDeleteUserCtx
Delete user by key
internal/auth/repository/redis_repository.go:58
MethodDeleteUserCtx
DeleteUserCtx mocks base method
internal/auth/mock/redis_repository_mock.go:67
MethodDeleteUserCtx
DeleteUserCtx indicates an expected call of DeleteUserCtx
internal/auth/mock/redis_repository_mock.go:75
MethodError
(args ...interface{})
pkg/logger/zap_logger.go:122
MethodError
Error Error() interface method
pkg/httpErrors/http_errors.go:60
MethodErrorf
(template string, args ...interface{})
pkg/logger/zap_logger.go:126
FunctionExtractJWTFromRequest
Extract JWT From Request
pkg/utils/jwt.go:47
MethodFatal
(args ...interface{})
pkg/logger/zap_logger.go:146
MethodFatalf
(template string, args ...interface{})
pkg/logger/zap_logger.go:150
MethodFindByEmail
Find user by email
internal/auth/repository/pg_repository.go:185
MethodFindByEmail
FindByEmail mocks base method
internal/auth/mock/pg_repository_mock.go:114
MethodFindByEmail
FindByEmail indicates an expected call of FindByEmail
internal/auth/mock/pg_repository_mock.go:123
MethodFindByName
(ctx context.Context, name string, query *utils.PaginationQuery)
internal/auth/pg_repository.go:19
MethodFindByName
()
internal/auth/delivery.go:13
MethodFindByName
FindByName godoc @Summary Find by name @Description Find user by name @Tags Auth @Accept json @Param name query string false "username" Format(usernam
internal/auth/delivery/http/handlers.go:264
MethodFindByName
Find users by name
internal/auth/repository/pg_repository.go:92
MethodFindByName
FindByName mocks base method
internal/auth/mock/pg_repository_mock.go:99
MethodFindByName
FindByName indicates an expected call of FindByName
internal/auth/mock/pg_repository_mock.go:108
MethodFindByName
FindByName mocks base method
internal/auth/mock/usecase_mock.go:114
MethodFindByName
FindByName indicates an expected call of FindByName
internal/auth/mock/usecase_mock.go:123
MethodFindByName
Find users by name
internal/auth/usecase/usecase.go:139
MethodGetAllByNewsID
(ctx context.Context, newsID uuid.UUID, query *utils.PaginationQuery)
internal/comments/pg_repository.go:19
MethodGetAllByNewsID
()
internal/comments/delivery.go:11
MethodGetAllByNewsID
GetAllByNewsID @Summary Get comments by news @Description Get all comment by news id @Tags Comments @Accept json @Produce json @Param id path int tr
internal/comments/delivery/http/hanldlers.go:187
MethodGetAllByNewsID
GetAllByNewsID comments
internal/comments/repository/pg_repository.go:93
MethodGetAllByNewsID
GetAllByNewsID mocks base method
internal/comments/mock/pg_repository_mock.go:99
MethodGetAllByNewsID
GetAllByNewsID indicates an expected call of GetAllByNewsID
internal/comments/mock/pg_repository_mock.go:108
MethodGetAllByNewsID
GetAllByNewsID mocks base method
internal/comments/mock/usecase_mock.go:99
MethodGetAllByNewsID
GetAllByNewsID indicates an expected call of GetAllByNewsID
internal/comments/mock/usecase_mock.go:108
MethodGetAllByNewsID
GetAllByNewsID comments
internal/comments/usecase/usecase.go:90
MethodGetByID
(ctx context.Context, userID uuid.UUID)
internal/auth/pg_repository.go:18
MethodGetByID
(ctx context.Context, userID uuid.UUID)
internal/auth/usecase.go:19
MethodGetByID
Get user by id
internal/auth/repository/pg_repository.go:80
MethodGetByID
GetByID mocks base method
internal/auth/mock/pg_repository_mock.go:84
MethodGetByID
GetByID indicates an expected call of GetByID
internal/auth/mock/pg_repository_mock.go:93
MethodGetByID
GetByID mocks base method
internal/auth/mock/usecase_mock.go:99
MethodGetByID
GetByID indicates an expected call of GetByID
internal/auth/mock/usecase_mock.go:108
MethodGetByID
Get user by id
internal/auth/usecase/usecase.go:112
MethodGetByID
(ctx context.Context, commentID uuid.UUID)
internal/comments/pg_repository.go:18
MethodGetByID
()
internal/comments/delivery.go:10
MethodGetByID
GetByID @Summary Get comment @Description Get comment by id @Tags Comments @Accept json @Produce json @Param id path int true "comment_id" @Success
internal/comments/delivery/http/hanldlers.go:153
MethodGetByID
GetByID comment
internal/comments/repository/pg_repository.go:81
MethodGetByID
GetByID mocks base method
internal/comments/mock/pg_repository_mock.go:84
MethodGetByID
GetByID indicates an expected call of GetByID
internal/comments/mock/pg_repository_mock.go:93
MethodGetByID
GetByID mocks base method
internal/comments/mock/usecase_mock.go:84
MethodGetByID
GetByID indicates an expected call of GetByID
internal/comments/mock/usecase_mock.go:93
MethodGetByID
GetByID comment
internal/comments/usecase/usecase.go:82
MethodGetByID
GetByID godoc @Summary Get by id news @Description Get by id news handler @Tags News @Accept json @Produce json @Param id path int true "news_id" @Suc
internal/news/delivery/http/handlers.go:105
MethodGetByIDCtx
Get user by id
internal/auth/repository/redis_repository.go:27
MethodGetByIDCtx
GetByIDCtx mocks base method
internal/auth/mock/redis_repository_mock.go:38
MethodGetByIDCtx
GetByIDCtx indicates an expected call of GetByIDCtx
internal/auth/mock/redis_repository_mock.go:47
MethodGetCSRFToken
GetCSRFToken godoc @Summary Get CSRF token @Description Get CSRF token, required auth session cookie @Tags Auth @Accept json @Produce json @Success 20
internal/auth/delivery/http/handlers.go:356
FunctionGetCtxWithReqID
Get ctx with timeout and request id from echo context
pkg/utils/http.go:30
FunctionGetImageExtension
(image *multipart.FileHeader)
pkg/utils/images.go:61
MethodGetMe
GetMe godoc @Summary Get user by id @Description Get current user by id @Tags Auth @Accept json @Produce json @Success 200 {object} models.User @Failu
internal/auth/delivery/http/handlers.go:332
MethodGetNews
(ctx context.Context, pq *utils.PaginationQuery)
internal/news/pg_repository.go:19
MethodGetNews
()
internal/news/delivery.go:11
MethodGetNews
GetNews godoc @Summary Get all news @Description Get all news with pagination @Tags News @Accept json @Produce json @Param page query int false "page
internal/news/delivery/http/handlers.go:166
MethodGetNews
Get news
internal/news/repository/pg_repository.go:103
MethodGetNews
GetNews mocks base method
internal/news/mock/pg_repository_mock.go:99
MethodGetNews
GetNews indicates an expected call of GetNews
internal/news/mock/pg_repository_mock.go:108
MethodGetNews
GetNews mocks base method
internal/news/mock/usecase_mock.go:99
MethodGetNews
GetNews indicates an expected call of GetNews
internal/news/mock/usecase_mock.go:108
MethodGetNews
Get news
internal/news/usecase/usecase.go:139
MethodGetNewsByID
(ctx context.Context, newsID uuid.UUID)
internal/news/pg_repository.go:17
MethodGetNewsByID
Get single news by id
internal/news/repository/pg_repository.go:69
← previousnext →201–300 of 480, ranked by callers