Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AleksK1NG/Go-Clean-Architecture-REST-API
/ functions
Functions
480 in github.com/AleksK1NG/Go-Clean-Architecture-REST-API
⨍
Functions
480
◇
Types & classes
90
Method
Delete
Delete mocks base method
internal/auth/mock/pg_repository_mock.go:70
Method
Delete
Delete indicates an expected call of Delete
internal/auth/mock/pg_repository_mock.go:78
Method
Delete
Delete mocks base method
internal/auth/mock/usecase_mock.go:85
Method
Delete
Delete indicates an expected call of Delete
internal/auth/mock/usecase_mock.go:93
Method
Delete
Delete new user
internal/auth/usecase/usecase.go:96
Method
Delete
(ctx context.Context, commentID uuid.UUID)
internal/comments/pg_repository.go:17
Method
Delete
(ctx context.Context, commentID uuid.UUID)
internal/comments/usecase.go:17
Method
Delete
()
internal/comments/delivery.go:9
Method
Delete
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
Method
Delete
Delete comment
internal/comments/repository/pg_repository.go:60
Method
Delete
Delete mocks base method
internal/comments/mock/pg_repository_mock.go:70
Method
Delete
Delete indicates an expected call of Delete
internal/comments/mock/pg_repository_mock.go:78
Method
Delete
Delete mocks base method
internal/comments/mock/usecase_mock.go:70
Method
Delete
Delete indicates an expected call of Delete
internal/comments/mock/usecase_mock.go:78
Method
Delete
Delete comment
internal/comments/usecase/usecase.go:61
Method
Delete
(ctx context.Context, newsID uuid.UUID)
internal/news/pg_repository.go:18
Method
Delete
()
internal/news/delivery.go:10
Method
Delete
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
Method
Delete
Delete news by id
internal/news/repository/pg_repository.go:82
Method
Delete
Delete mocks base method
internal/news/mock/pg_repository_mock.go:85
Method
Delete
Delete indicates an expected call of Delete
internal/news/mock/pg_repository_mock.go:93
Method
Delete
Delete mocks base method
internal/news/mock/usecase_mock.go:85
Method
Delete
Delete indicates an expected call of Delete
internal/news/mock/usecase_mock.go:93
Method
Delete
Delete news
internal/news/usecase/usecase.go:114
Method
DeleteByID
(ctx context.Context, sessionID string)
internal/session/redis_repository.go:14
Method
DeleteByID
Delete session by id
internal/session/repository/redis_repository.go:71
Method
DeleteByID
DeleteByID mocks base method
internal/session/mock/redis_repository_mock.go:68
Method
DeleteByID
DeleteByID indicates an expected call of DeleteByID
internal/session/mock/redis_repository_mock.go:76
Method
DeleteByID
DeleteByID mocks base method
internal/session/mock/usecase_mock.go:68
Method
DeleteByID
DeleteByID indicates an expected call of DeleteByID
internal/session/mock/usecase_mock.go:76
Method
DeleteByID
Delete session by id
internal/session/usecase/usecase.go:33
Method
DeleteNewsCtx
Delete new item from cache
internal/news/repository/redis_repository.go:59
Method
DeleteNewsCtx
DeleteNewsCtx mocks base method
internal/news/mock/redis_repository_mock.go:67
Method
DeleteNewsCtx
DeleteNewsCtx indicates an expected call of DeleteNewsCtx
internal/news/mock/redis_repository_mock.go:75
Method
DeleteUserCtx
Delete user by key
internal/auth/repository/redis_repository.go:58
Method
DeleteUserCtx
DeleteUserCtx mocks base method
internal/auth/mock/redis_repository_mock.go:67
Method
DeleteUserCtx
DeleteUserCtx indicates an expected call of DeleteUserCtx
internal/auth/mock/redis_repository_mock.go:75
Method
Error
(args ...interface{})
pkg/logger/zap_logger.go:122
Method
Error
Error Error() interface method
pkg/httpErrors/http_errors.go:60
Method
Errorf
(template string, args ...interface{})
pkg/logger/zap_logger.go:126
Function
ExtractJWTFromRequest
Extract JWT From Request
pkg/utils/jwt.go:47
Method
Fatal
(args ...interface{})
pkg/logger/zap_logger.go:146
Method
Fatalf
(template string, args ...interface{})
pkg/logger/zap_logger.go:150
Method
FindByEmail
Find user by email
internal/auth/repository/pg_repository.go:185
Method
FindByEmail
FindByEmail mocks base method
internal/auth/mock/pg_repository_mock.go:114
Method
FindByEmail
FindByEmail indicates an expected call of FindByEmail
internal/auth/mock/pg_repository_mock.go:123
Method
FindByName
(ctx context.Context, name string, query *utils.PaginationQuery)
internal/auth/pg_repository.go:19
Method
FindByName
()
internal/auth/delivery.go:13
Method
FindByName
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
Method
FindByName
Find users by name
internal/auth/repository/pg_repository.go:92
Method
FindByName
FindByName mocks base method
internal/auth/mock/pg_repository_mock.go:99
Method
FindByName
FindByName indicates an expected call of FindByName
internal/auth/mock/pg_repository_mock.go:108
Method
FindByName
FindByName mocks base method
internal/auth/mock/usecase_mock.go:114
Method
FindByName
FindByName indicates an expected call of FindByName
internal/auth/mock/usecase_mock.go:123
Method
FindByName
Find users by name
internal/auth/usecase/usecase.go:139
Method
GetAllByNewsID
(ctx context.Context, newsID uuid.UUID, query *utils.PaginationQuery)
internal/comments/pg_repository.go:19
Method
GetAllByNewsID
()
internal/comments/delivery.go:11
Method
GetAllByNewsID
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
Method
GetAllByNewsID
GetAllByNewsID comments
internal/comments/repository/pg_repository.go:93
Method
GetAllByNewsID
GetAllByNewsID mocks base method
internal/comments/mock/pg_repository_mock.go:99
Method
GetAllByNewsID
GetAllByNewsID indicates an expected call of GetAllByNewsID
internal/comments/mock/pg_repository_mock.go:108
Method
GetAllByNewsID
GetAllByNewsID mocks base method
internal/comments/mock/usecase_mock.go:99
Method
GetAllByNewsID
GetAllByNewsID indicates an expected call of GetAllByNewsID
internal/comments/mock/usecase_mock.go:108
Method
GetAllByNewsID
GetAllByNewsID comments
internal/comments/usecase/usecase.go:90
Method
GetByID
(ctx context.Context, userID uuid.UUID)
internal/auth/pg_repository.go:18
Method
GetByID
(ctx context.Context, userID uuid.UUID)
internal/auth/usecase.go:19
Method
GetByID
Get user by id
internal/auth/repository/pg_repository.go:80
Method
GetByID
GetByID mocks base method
internal/auth/mock/pg_repository_mock.go:84
Method
GetByID
GetByID indicates an expected call of GetByID
internal/auth/mock/pg_repository_mock.go:93
Method
GetByID
GetByID mocks base method
internal/auth/mock/usecase_mock.go:99
Method
GetByID
GetByID indicates an expected call of GetByID
internal/auth/mock/usecase_mock.go:108
Method
GetByID
Get user by id
internal/auth/usecase/usecase.go:112
Method
GetByID
(ctx context.Context, commentID uuid.UUID)
internal/comments/pg_repository.go:18
Method
GetByID
()
internal/comments/delivery.go:10
Method
GetByID
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
Method
GetByID
GetByID comment
internal/comments/repository/pg_repository.go:81
Method
GetByID
GetByID mocks base method
internal/comments/mock/pg_repository_mock.go:84
Method
GetByID
GetByID indicates an expected call of GetByID
internal/comments/mock/pg_repository_mock.go:93
Method
GetByID
GetByID mocks base method
internal/comments/mock/usecase_mock.go:84
Method
GetByID
GetByID indicates an expected call of GetByID
internal/comments/mock/usecase_mock.go:93
Method
GetByID
GetByID comment
internal/comments/usecase/usecase.go:82
Method
GetByID
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
Method
GetByIDCtx
Get user by id
internal/auth/repository/redis_repository.go:27
Method
GetByIDCtx
GetByIDCtx mocks base method
internal/auth/mock/redis_repository_mock.go:38
Method
GetByIDCtx
GetByIDCtx indicates an expected call of GetByIDCtx
internal/auth/mock/redis_repository_mock.go:47
Method
GetCSRFToken
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
Function
GetCtxWithReqID
Get ctx with timeout and request id from echo context
pkg/utils/http.go:30
Function
GetImageExtension
(image *multipart.FileHeader)
pkg/utils/images.go:61
Method
GetMe
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
Method
GetNews
(ctx context.Context, pq *utils.PaginationQuery)
internal/news/pg_repository.go:19
Method
GetNews
()
internal/news/delivery.go:11
Method
GetNews
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
Method
GetNews
Get news
internal/news/repository/pg_repository.go:103
Method
GetNews
GetNews mocks base method
internal/news/mock/pg_repository_mock.go:99
Method
GetNews
GetNews indicates an expected call of GetNews
internal/news/mock/pg_repository_mock.go:108
Method
GetNews
GetNews mocks base method
internal/news/mock/usecase_mock.go:99
Method
GetNews
GetNews indicates an expected call of GetNews
internal/news/mock/usecase_mock.go:108
Method
GetNews
Get news
internal/news/usecase/usecase.go:139
Method
GetNewsByID
(ctx context.Context, newsID uuid.UUID)
internal/news/pg_repository.go:17
Method
GetNewsByID
Get single news by id
internal/news/repository/pg_repository.go:69
← previous
next →
201–300 of 480, ranked by callers